webpack 4.29.5 → 4.29.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/lib/APIPlugin.js CHANGED
@@ -58,12 +58,12 @@ class APIPlugin {
58
58
  REPLACEMENTS[key]
59
59
  )
60
60
  );
61
- parser.hooks.evaluateTypeof
62
- .for(key)
63
- .tap(
64
- "APIPlugin",
65
- ParserHelpers.evaluateToString(REPLACEMENT_TYPES[key])
66
- );
61
+ const type = REPLACEMENT_TYPES[key];
62
+ if (type) {
63
+ parser.hooks.evaluateTypeof
64
+ .for(key)
65
+ .tap("APIPlugin", ParserHelpers.evaluateToString(type));
66
+ }
67
67
  });
68
68
  };
69
69
 
@@ -34,7 +34,10 @@ HarmonyAcceptDependency.Template = class HarmonyAcceptDependencyTemplate {
34
34
  dep.range[0],
35
35
  `function(__WEBPACK_OUTDATED_DEPENDENCIES__) { ${content}(`
36
36
  );
37
- source.insert(dep.range[1], ")(__WEBPACK_OUTDATED_DEPENDENCIES__); }");
37
+ source.insert(
38
+ dep.range[1],
39
+ ")(__WEBPACK_OUTDATED_DEPENDENCIES__); }.bind(this)"
40
+ );
38
41
  return;
39
42
  }
40
43
 
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "webpack",
3
- "version": "4.29.5",
3
+ "version": "4.29.6",
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",
7
7
  "dependencies": {
8
- "@webassemblyjs/ast": "1.8.3",
9
- "@webassemblyjs/helper-module-context": "1.8.3",
10
- "@webassemblyjs/wasm-edit": "1.8.3",
11
- "@webassemblyjs/wasm-parser": "1.8.3",
8
+ "@webassemblyjs/ast": "1.8.5",
9
+ "@webassemblyjs/helper-module-context": "1.8.5",
10
+ "@webassemblyjs/wasm-edit": "1.8.5",
11
+ "@webassemblyjs/wasm-parser": "1.8.5",
12
12
  "acorn": "^6.0.5",
13
13
  "acorn-dynamic-import": "^4.0.0",
14
14
  "ajv": "^6.1.0",
@@ -34,6 +34,7 @@
34
34
  "@types/node": "^10.12.21",
35
35
  "@types/tapable": "^1.0.1",
36
36
  "@types/webpack-sources": "^0.1.4",
37
+ "@yarnpkg/lockfile": "^1.1.0",
37
38
  "benchmark": "^2.1.1",
38
39
  "bundle-loader": "~0.5.0",
39
40
  "coffee-loader": "^0.9.0",
@@ -119,14 +120,14 @@
119
120
  "build:examples": "cd examples && node buildAll.js",
120
121
  "pretest": "yarn lint",
121
122
  "prelint": "yarn setup",
122
- "lint": "yarn code-lint && yarn schema-lint && yarn type-lint && yarn special-lint",
123
+ "lint": "yarn code-lint && yarn jest-lint && yarn type-lint && yarn special-lint",
123
124
  "code-lint": "eslint --cache \"{setup,lib,bin,hot,buildin,benchmark,tooling,schemas}/**/*.js\" \"test/*.js\" \"test/{configCases,watchCases,statsCases,hotCases}/**/webpack.config.js\" \"examples/**/webpack.config.js\"",
124
125
  "type-lint": "tsc --pretty",
125
126
  "special-lint": "node tooling/inherit-types && node tooling/format-schemas && node tooling/compile-to-definitions",
126
127
  "special-lint-fix": "node tooling/inherit-types --write --override && node tooling/format-schemas --write && node tooling/compile-to-definitions --write",
127
128
  "fix": "yarn code-lint --fix && yarn special-lint-fix",
128
129
  "pretty": "prettier --loglevel warn --write \"*.{ts,js,json,yml,yaml}\" \"{setup,lib,bin,hot,buildin,benchmark,tooling,schemas}/**/*.{js,json}\" \"test/*.js\" \"test/{configCases,watchCases,statsCases,hotCases}/**/webpack.config.js\" \"examples/**/webpack.config.js\"",
129
- "schema-lint": "node --max-old-space-size=4096 node_modules/jest-cli/bin/jest --testMatch \"<rootDir>/test/*.lint.js\" --no-verbose",
130
+ "jest-lint": "node --max-old-space-size=4096 node_modules/jest-cli/bin/jest --testMatch \"<rootDir>/test/*.lint.js\" --no-verbose",
130
131
  "benchmark": "node --max-old-space-size=4096 --trace-deprecation node_modules/jest-cli/bin/jest --testMatch \"<rootDir>/test/*.benchmark.js\" --runInBand",
131
132
  "cover": "yarn cover:init && yarn cover:all && yarn cover:report",
132
133
  "cover:init": "rimraf coverage",