Your question is Configuring Webpack. Start with the requirements on the right.
Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.
How would you configure Webpack for a modern front-end application?
Implement configure_webpack(options) to generate a deterministic configuration object. Support JavaScript, optional TypeScript and CSS handling, asset loading, production optimization, plugin selection, source maps, and an optional development server.
Input is a dictionary matching the options in the examples. Return a dictionary representing the Webpack configuration.
def configure_webpack(options):