Difficulty: 5/10output configuration, environment targeting, module resolutionBecause JavaScript can be written for both server and browser, webpack offers multiple deployment targets that you can set in your webpack configuration.To set the target property, you set the target value in your webpack config:CopyScenario Questions0-2 years experience1If you need to bundle a library that will run in the browser, how would you set the target field in webpack.config.js, and what effect does that have on the generated bundle?2Suppose you accidentally set target to 'node' for a client‑side app. What symptoms would you expect when you load the page in a browser?2-5 years experience1You are adding server‑side rendering to an existing React app. How would you configure target for the server bundle versus the client bundle, and why?Follow-up QuestionsWhat default polyfills does webpack include when target is 'web'?How does changing target affect the handling of __dirname and __filename?Can you override any of the target‑specific defaults, and if so, how?Suggest Improvement