weboptimizer 4.0.28 → 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 +9 -1
- package/webpackConfigurator.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "weboptimizer",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.30",
|
|
4
4
|
"description": "A generic web optimizer, (module) bundler and development environment.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"webpack",
|
|
@@ -1067,6 +1067,10 @@
|
|
|
1067
1067
|
},
|
|
1068
1068
|
"loader": []
|
|
1069
1069
|
},
|
|
1070
|
+
"runtimeChunk": {
|
|
1071
|
+
"#": "We need to include a single shared runtime chunk into the bundle to avoid duplication of runtime code.",
|
|
1072
|
+
"__evaluate__": "self.givenCommandLineArguments[2] === 'serve' ? 'single' : false"
|
|
1073
|
+
},
|
|
1070
1074
|
"terser": {
|
|
1071
1075
|
"terserOptions": {
|
|
1072
1076
|
"compress": {
|
|
@@ -1507,6 +1511,10 @@
|
|
|
1507
1511
|
},
|
|
1508
1512
|
"module": {
|
|
1509
1513
|
"optimizer": {
|
|
1514
|
+
"runtimeChunk": {
|
|
1515
|
+
"#": "We need to include a single shared runtime chunk into the bundle to avoid duplication of runtime code.",
|
|
1516
|
+
"__evaluate__": "self.givenCommandLineArguments[2] === 'serve' ? 'single' : false"
|
|
1517
|
+
},
|
|
1510
1518
|
"terser": {
|
|
1511
1519
|
"terserOptions": {
|
|
1512
1520
|
"compress": {
|
package/webpackConfigurator.js
CHANGED
|
@@ -766,7 +766,7 @@ export let webpackConfiguration = extend(true, {
|
|
|
766
766
|
devServer: configuration.development.server,
|
|
767
767
|
experiments: {
|
|
768
768
|
futureDefaults: true,
|
|
769
|
-
outputModule:
|
|
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"
|