webpack 4.44.0 → 4.44.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.
@@ -215,6 +215,7 @@ class HarmonyExportImportedSpecifierDependency extends HarmonyImportDependency {
215
215
  const mode = new ExportMode("dynamic-reexport");
216
216
  mode.module = importedModule;
217
217
  mode.ignored = new Set([
218
+ "default",
218
219
  ...this.activeExports,
219
220
  ...activeFromOtherStarExports
220
221
  ]);
@@ -586,7 +587,7 @@ HarmonyExportImportedSpecifierDependency.Template = class HarmonyExportImportedS
586
587
  .join("");
587
588
 
588
589
  case "dynamic-reexport": {
589
- const activeExports = mode.ignored;
590
+ const ignoredExports = mode.ignored;
590
591
  let content =
591
592
  "/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in " +
592
593
  importVar +
@@ -594,10 +595,10 @@ HarmonyExportImportedSpecifierDependency.Template = class HarmonyExportImportedS
594
595
 
595
596
  // Filter out exports which are defined by other exports
596
597
  // and filter out default export because it cannot be reexported with *
597
- if (activeExports.size > 0) {
598
+ if (ignoredExports.size > 0) {
598
599
  content +=
599
600
  "if(" +
600
- JSON.stringify(Array.from(activeExports).concat("default")) +
601
+ JSON.stringify(Array.from(ignoredExports)) +
601
602
  ".indexOf(__WEBPACK_IMPORT_KEY__) < 0) ";
602
603
  } else {
603
604
  content += "if(__WEBPACK_IMPORT_KEY__ !== 'default') ";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "webpack",
3
- "version": "4.44.0",
3
+ "version": "4.44.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",
@@ -29,6 +29,14 @@
29
29
  "watchpack": "^1.7.4",
30
30
  "webpack-sources": "^1.4.1"
31
31
  },
32
+ "peerDependenciesMeta": {
33
+ "webpack-cli": {
34
+ "optional": true
35
+ },
36
+ "webpack-command": {
37
+ "optional": true
38
+ }
39
+ },
32
40
  "devDependencies": {
33
41
  "@babel/core": "^7.7.2",
34
42
  "@types/node": "^10.12.21",