webpack 4.23.0 → 4.23.1
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/lib/ConstPlugin.js +9 -1
- package/package.json +1 -1
package/lib/ConstPlugin.js
CHANGED
@@ -279,7 +279,15 @@ class ConstPlugin {
|
|
279
279
|
(expression.operator === "||" && !bool);
|
280
280
|
|
281
281
|
if (param.isBoolean() || keepRight) {
|
282
|
-
|
282
|
+
// for case like
|
283
|
+
//
|
284
|
+
// return'development'===process.env.NODE_ENV&&'foo'
|
285
|
+
//
|
286
|
+
// we need a space before the bool to prevent result like
|
287
|
+
//
|
288
|
+
// returnfalse&&'foo'
|
289
|
+
//
|
290
|
+
const dep = new ConstDependency(` ${bool}`, param.range);
|
283
291
|
dep.loc = expression.loc;
|
284
292
|
parser.state.current.addDependency(dep);
|
285
293
|
} else {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "webpack",
|
3
|
-
"version": "4.23.
|
3
|
+
"version": "4.23.1",
|
4
4
|
"author": "Tobias Koppers @sokra",
|
5
5
|
"description": "Packs CommonJs/AMD modules for the browser. Allows to split your codebase into multiple bundles, which can be loaded on demand. Support loaders to preprocess files, i.e. json, jsx, es7, css, less, ... and your custom stuff.",
|
6
6
|
"license": "MIT",
|