@umijs/bundler-webpack 4.0.0-beta.10 → 4.0.0-beta.14

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.
Files changed (70) hide show
  1. package/compiled/autoprefixer/browserslist/index.d.ts +7 -7
  2. package/compiled/autoprefixer/index.js +3 -3
  3. package/compiled/autoprefixer/postcss/lib/container.d.ts +2 -2
  4. package/compiled/autoprefixer/postcss/lib/css-syntax-error.d.ts +55 -8
  5. package/compiled/autoprefixer/postcss/lib/input.d.ts +26 -6
  6. package/compiled/autoprefixer/postcss/lib/lazy-result.d.ts +11 -10
  7. package/compiled/autoprefixer/postcss/lib/no-work-result.d.ts +37 -0
  8. package/compiled/autoprefixer/postcss/lib/node.d.ts +36 -2
  9. package/compiled/autoprefixer/postcss/lib/postcss.d.ts +31 -30
  10. package/compiled/autoprefixer/postcss/lib/processor.d.ts +5 -4
  11. package/compiled/autoprefixer/postcss/lib/result.d.ts +3 -2
  12. package/compiled/autoprefixer/postcss/lib/warning.d.ts +37 -3
  13. package/compiled/babel-loader/index.js +2 -2
  14. package/compiled/mini-css-extract-plugin/index.js +6769 -6731
  15. package/compiled/mini-css-extract-plugin/loader.js +1 -1
  16. package/compiled/mini-css-extract-plugin/utils.js +11 -6
  17. package/compiled/postcss-loader/index.js +1 -1
  18. package/compiled/react-refresh/index.js +3 -3
  19. package/compiled/sass-loader/index.js +1 -1
  20. package/compiled/schema-utils/ajv/dist/ajv.d.ts +16 -0
  21. package/compiled/schema-utils/ajv/dist/compile/codegen/code.d.ts +39 -0
  22. package/compiled/schema-utils/ajv/dist/compile/codegen/index.d.ts +79 -0
  23. package/compiled/schema-utils/ajv/dist/compile/codegen/scope.d.ts +79 -0
  24. package/compiled/schema-utils/ajv/dist/compile/errors.d.ts +13 -0
  25. package/compiled/schema-utils/ajv/dist/compile/index.d.ts +80 -0
  26. package/compiled/schema-utils/ajv/dist/compile/ref_error.d.ts +5 -0
  27. package/compiled/schema-utils/ajv/dist/compile/resolve.d.ts +12 -0
  28. package/compiled/schema-utils/ajv/dist/compile/rules.d.ts +28 -0
  29. package/compiled/schema-utils/ajv/dist/compile/util.d.ts +40 -0
  30. package/compiled/schema-utils/ajv/dist/compile/validate/index.d.ts +42 -0
  31. package/compiled/schema-utils/ajv/dist/compile/validate/subschema.d.ts +47 -0
  32. package/compiled/schema-utils/ajv/dist/core.d.ts +171 -0
  33. package/compiled/schema-utils/ajv/dist/runtime/validation_error.d.ts +7 -0
  34. package/compiled/schema-utils/ajv/dist/types/index.d.ts +177 -0
  35. package/compiled/schema-utils/ajv/dist/types/json-schema.d.ts +124 -0
  36. package/compiled/schema-utils/ajv/dist/types/jtd-schema.d.ts +168 -0
  37. package/compiled/schema-utils/declarations/validate.d.ts +4 -4
  38. package/compiled/schema-utils/index.js +8 -2
  39. package/compiled/schema-utils/uri-js/dist/es5/uri.all.d.ts +59 -0
  40. package/compiled/style-loader/index.js +1 -1
  41. package/compiled/terser/index.js +1 -1
  42. package/compiled/terser-webpack-plugin/index.js +328 -451
  43. package/compiled/terser-webpack-plugin/jest-worker/build/types.d.ts +1 -0
  44. package/compiled/terser-webpack-plugin/minify.js +6 -1
  45. package/compiled/terser-webpack-plugin/types/index.d.ts +3 -3
  46. package/compiled/terser-webpack-plugin/types/utils.d.ts +9 -12
  47. package/compiled/terser-webpack-plugin/utils.js +113 -17
  48. package/compiled/webpack/index.js +4915 -4485
  49. package/compiled/webpack-dev-middleware/index.js +11 -5
  50. package/compiled/webpack-sources/index.js +1 -1
  51. package/dist/config/assetRules.js +0 -12
  52. package/dist/config/config.js +8 -1
  53. package/dist/config/harmonyLinkingErrorPlugin.d.ts +6 -0
  54. package/dist/config/harmonyLinkingErrorPlugin.js +39 -0
  55. package/dist/config/svgRules.d.ts +1 -0
  56. package/dist/config/svgRules.js +17 -3
  57. package/dist/dev.js +10 -5
  58. package/dist/loader/svgr.d.ts +4 -0
  59. package/dist/loader/svgr.js +67 -0
  60. package/dist/plugins/RuntimePublicPathPlugin.d.ts +4 -0
  61. package/dist/plugins/RuntimePublicPathPlugin.js +19 -0
  62. package/dist/schema.js +2 -0
  63. package/dist/server/server.js +18 -1
  64. package/dist/swcPlugins/lockCoreJS.d.ts +6 -0
  65. package/dist/swcPlugins/lockCoreJS.js +23 -0
  66. package/dist/types.d.ts +1 -0
  67. package/package.json +27 -27
  68. package/compiled/@svgr/webpack/LICENSE +0 -7
  69. package/compiled/@svgr/webpack/index.js +0 -266
  70. package/compiled/@svgr/webpack/package.json +0 -1
@@ -3,8 +3,8 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.pitch = pitch;
7
6
  exports.default = _default;
7
+ exports.pitch = pitch;
8
8
 
9
9
  var _path = _interopRequireDefault(require("path"));
10
10
 
@@ -3,13 +3,13 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.trueFn = trueFn;
7
- exports.findModuleById = findModuleById;
8
- exports.evalModuleCode = evalModuleCode;
6
+ exports.SINGLE_DOT_PATH_SEGMENT = exports.MODULE_TYPE = exports.AUTO_PUBLIC_PATH = exports.ABSOLUTE_PUBLIC_PATH = void 0;
9
7
  exports.compareModulesByIdentifier = compareModulesByIdentifier;
10
- exports.stringifyRequest = stringifyRequest;
8
+ exports.evalModuleCode = evalModuleCode;
9
+ exports.findModuleById = findModuleById;
11
10
  exports.getUndoPath = getUndoPath;
12
- exports.SINGLE_DOT_PATH_SEGMENT = exports.ABSOLUTE_PUBLIC_PATH = exports.AUTO_PUBLIC_PATH = exports.MODULE_TYPE = void 0;
11
+ exports.stringifyRequest = stringifyRequest;
12
+ exports.trueFn = trueFn;
13
13
 
14
14
  var _module = _interopRequireDefault(require("module"));
15
15
 
@@ -87,9 +87,14 @@ const RELATIVE_PATH_REGEXP = /^\.\.?[/\\]/;
87
87
 
88
88
  function isRelativePath(str) {
89
89
  return RELATIVE_PATH_REGEXP.test(str);
90
- }
90
+ } // TODO simplify for the next major release
91
+
91
92
 
92
93
  function stringifyRequest(loaderContext, request) {
94
+ if (typeof loaderContext.utils !== "undefined" && typeof loaderContext.utils.contextify === "function") {
95
+ return JSON.stringify(loaderContext.utils.contextify(loaderContext.context || loaderContext.rootContext, request));
96
+ }
97
+
93
98
  const splitted = request.split("!");
94
99
  const {
95
100
  context