weboptimizer 4.0.29 → 4.0.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "weboptimizer",
3
- "version": "4.0.29",
3
+ "version": "4.0.30",
4
4
  "description": "A generic web optimizer, (module) bundler and development environment.",
5
5
  "keywords": [
6
6
  "webpack",
@@ -766,7 +766,7 @@ export let webpackConfiguration = extend(true, {
766
766
  devServer: configuration.development.server,
767
767
  experiments: {
768
768
  futureDefaults: true,
769
- outputModule: true,
769
+ outputModule: configuration.givenCommandLineArguments[2] !== 'serve',
770
770
  /*
771
771
  "futureDefaults" would enable webpack's native css support
772
772
  which disables the configured "mini-css-extract-plugin"