webpack 3.5.5 → 3.5.6
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/README.md +567 -567
- package/bin/config-yargs.js +1 -1
- package/bin/convert-argv.js +4 -4
- package/lib/HotModuleReplacement.runtime.js +602 -601
- package/lib/Module.js +250 -249
- package/lib/NormalModule.js +556 -555
- package/lib/OptionsDefaulter.js +73 -71
- package/lib/SourceMapDevToolPlugin.js +209 -207
- package/lib/Template.js +176 -166
- package/lib/WebpackOptionsDefaulter.js +129 -115
- package/lib/dependencies/HarmonyExportImportedSpecifierDependency.js +285 -286
- package/lib/dependencies/HarmonyImportDependencyParserPlugin.js +124 -121
- package/lib/dependencies/HarmonyModulesHelpers.js +85 -85
- package/lib/optimize/ConcatenatedModule.js +814 -814
- package/lib/webpack.js +119 -118
- package/package.json +1 -1
package/bin/config-yargs.js
CHANGED
package/bin/convert-argv.js
CHANGED
@@ -166,12 +166,12 @@ module.exports = function(yargs, argv, convertOptions) {
|
|
166
166
|
options.watchOptions.aggregateTimeout = +argv["watch-aggregate-timeout"];
|
167
167
|
}
|
168
168
|
|
169
|
-
if(argv["watch-poll"]) {
|
169
|
+
if(typeof argv["watch-poll"] !== undefined) {
|
170
170
|
options.watchOptions = options.watchOptions || {};
|
171
|
-
if(
|
172
|
-
options.watchOptions.poll = +argv["watch-poll"];
|
173
|
-
else
|
171
|
+
if(argv["watch-poll"] === "true" || argv["watch-poll"] === "")
|
174
172
|
options.watchOptions.poll = true;
|
173
|
+
else if(!isNaN(argv["watch-poll"]))
|
174
|
+
options.watchOptions.poll = +argv["watch-poll"];
|
175
175
|
}
|
176
176
|
|
177
177
|
if(argv["watch-stdin"]) {
|