@umijs/bundler-webpack 4.0.0-rc.8 → 4.0.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/client/client/client.js +65 -37
- package/client/constants.js +9 -0
- package/compiled/babel-loader/index.js +2 -2
- package/compiled/copy-webpack-plugin/{576.index.js → 939.index.js} +11 -11
- package/compiled/copy-webpack-plugin/index.js +12 -12
- package/compiled/css-minimizer-webpack-plugin/index.js +7 -7
- package/compiled/cssnano/index.js +6 -6
- package/compiled/fork-ts-checker-webpack-plugin/index.js +7 -13
- package/compiled/{tapable → react-refresh}/LICENSE +6 -6
- package/compiled/react-refresh/index.js +9 -7
- package/compiled/react-refresh/package.json +1 -0
- package/compiled/webpack/BasicEffectRulePlugin.js +1 -0
- package/compiled/webpack/BasicMatcherRulePlugin.js +1 -0
- package/compiled/webpack/HotModuleReplacement.runtime.js +29 -14
- package/compiled/webpack/JavascriptHotModuleReplacement.runtime.js +4 -3
- package/compiled/webpack/ObjectMatcherRulePlugin.js +1 -0
- package/compiled/webpack/RuleSetCompiler.js +1 -0
- package/compiled/webpack/UseEffectRulePlugin.js +1 -0
- package/compiled/webpack/deepImports.json +6 -1
- package/compiled/webpack/index.js +3978 -3167
- package/compiled/webpack/types.d.ts +606 -171
- package/compiled/webpack-dev-middleware/index.js +8 -7
- package/compiled/webpack-manifest-plugin/index.js +1 -1
- package/dist/build.d.ts +1 -0
- package/dist/build.js +49 -56
- package/dist/cli.js +6 -15
- package/dist/client/client.js +52 -50
- package/dist/config/_sampleFeature.js +6 -17
- package/dist/config/assetRules.js +44 -55
- package/dist/config/bundleAnalyzerPlugin.js +12 -23
- package/dist/config/compressPlugin.js +89 -70
- package/dist/config/config.d.ts +2 -0
- package/dist/config/config.js +181 -179
- package/dist/config/copyPlugin.js +29 -40
- package/dist/config/cssRules.js +114 -83
- package/dist/config/definePlugin.js +11 -19
- package/dist/config/detectDeadCodePlugin.js +16 -21
- package/dist/config/fastRefreshPlugin.js +11 -22
- package/dist/config/forkTSCheckerPlugin.js +11 -22
- package/dist/config/harmonyLinkingErrorPlugin.js +3 -14
- package/dist/config/ignorePlugin.js +10 -21
- package/dist/config/javaScriptRules.d.ts +1 -0
- package/dist/config/javaScriptRules.js +152 -135
- package/dist/config/manifestPlugin.d.ts +1 -1
- package/dist/config/manifestPlugin.js +10 -18
- package/dist/config/miniCSSExtractPlugin.js +15 -23
- package/dist/config/nodePolyfill.js +14 -20
- package/dist/config/nodePrefixPlugin.d.ts +11 -0
- package/dist/config/nodePrefixPlugin.js +14 -0
- package/dist/config/progressPlugin.js +7 -18
- package/dist/config/purgecssWebpackPlugin.js +15 -26
- package/dist/config/speedMeasureWebpackPlugin.js +12 -23
- package/dist/config/ssrPlugin.d.ts +11 -0
- package/dist/config/ssrPlugin.js +66 -0
- package/dist/config/svgRules.js +44 -47
- package/dist/constants.d.ts +1 -0
- package/dist/constants.js +7 -1
- package/dist/dev.d.ts +4 -0
- package/dist/dev.js +115 -94
- package/dist/index.d.ts +3 -0
- package/dist/index.js +16 -0
- package/dist/loader/svgr.js +4 -13
- package/dist/loader/swc.js +9 -14
- package/dist/plugins/ProgressPlugin.js +3 -3
- package/dist/plugins/RuntimePublicPathPlugin.js +4 -1
- package/dist/schema.js +24 -8
- package/dist/server/server.d.ts +3 -1
- package/dist/server/server.js +165 -150
- package/dist/server/ws.d.ts +7 -2
- package/dist/swcPlugins/autoCSSModules.js +3 -1
- package/dist/swcPlugins/changeImportFromString.d.ts +2 -0
- package/dist/swcPlugins/changeImportFromString.js +10 -0
- package/dist/swcPlugins/lockCoreJS.js +3 -2
- package/dist/types.d.ts +3 -0
- package/dist/utils/getEsBuildTarget.d.ts +5 -0
- package/dist/utils/getEsBuildTarget.js +12 -0
- package/package.json +23 -21
- package/compiled/tapable/index.js +0 -1
- package/compiled/tapable/package.json +0 -1
- package/compiled/tapable/tapable.d.ts +0 -116
- package/dist/plugins/ESBuildCSSMinifyPlugin.d.ts +0 -11
- package/dist/plugins/ESBuildCSSMinifyPlugin.js +0 -63
- package/dist/plugins/ParcelCSSMinifyPlugin.d.ts +0 -10
- package/dist/plugins/ParcelCSSMinifyPlugin.js +0 -75
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
exports.id =
|
|
2
|
-
exports.ids = [
|
|
1
|
+
exports.id = 939;
|
|
2
|
+
exports.ids = [939];
|
|
3
3
|
exports.modules = {
|
|
4
4
|
|
|
5
|
-
/***/
|
|
5
|
+
/***/ 5352:
|
|
6
6
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
7
7
|
|
|
8
8
|
"use strict";
|
|
9
9
|
|
|
10
10
|
const path = __webpack_require__(1017);
|
|
11
|
-
const pathType = __webpack_require__(
|
|
11
|
+
const pathType = __webpack_require__(9223);
|
|
12
12
|
|
|
13
13
|
const getExtensions = extensions => extensions.length > 1 ? `{${extensions.join(',')}}` : extensions[0];
|
|
14
14
|
|
|
@@ -85,7 +85,7 @@ module.exports.sync = (input, options) => {
|
|
|
85
85
|
|
|
86
86
|
/***/ }),
|
|
87
87
|
|
|
88
|
-
/***/
|
|
88
|
+
/***/ 6302:
|
|
89
89
|
/***/ (function(module) {
|
|
90
90
|
|
|
91
91
|
// A simple implementation of make-array
|
|
@@ -695,7 +695,7 @@ if (
|
|
|
695
695
|
|
|
696
696
|
/***/ }),
|
|
697
697
|
|
|
698
|
-
/***/
|
|
698
|
+
/***/ 9223:
|
|
699
699
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
700
700
|
|
|
701
701
|
"use strict";
|
|
@@ -746,7 +746,7 @@ exports.isSymlinkSync = isTypeSync.bind(null, 'lstatSync', 'isSymbolicLink');
|
|
|
746
746
|
|
|
747
747
|
/***/ }),
|
|
748
748
|
|
|
749
|
-
/***/
|
|
749
|
+
/***/ 1939:
|
|
750
750
|
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
751
751
|
|
|
752
752
|
"use strict";
|
|
@@ -772,11 +772,11 @@ const arrayUnion = (...arguments_) => [...new Set(arguments_.flat())];
|
|
|
772
772
|
/* harmony default export */ var array_union = (arrayUnion);
|
|
773
773
|
|
|
774
774
|
// EXTERNAL MODULE: ../../node_modules/.pnpm/merge2@1.4.1/node_modules/merge2/index.js
|
|
775
|
-
var merge2 = __webpack_require__(
|
|
775
|
+
var merge2 = __webpack_require__(1382);
|
|
776
776
|
// EXTERNAL MODULE: ../../node_modules/.pnpm/fast-glob@3.2.11/node_modules/fast-glob/out/index.js
|
|
777
|
-
var out = __webpack_require__(
|
|
777
|
+
var out = __webpack_require__(3924);
|
|
778
778
|
// EXTERNAL MODULE: ../../node_modules/.pnpm/dir-glob@3.0.1/node_modules/dir-glob/index.js
|
|
779
|
-
var dir_glob = __webpack_require__(
|
|
779
|
+
var dir_glob = __webpack_require__(5352);
|
|
780
780
|
// EXTERNAL MODULE: external "node:url"
|
|
781
781
|
var external_node_url_ = __webpack_require__(1041);
|
|
782
782
|
;// CONCATENATED MODULE: ../../node_modules/.pnpm/globby@12.2.0/node_modules/globby/to-path.js
|
|
@@ -801,7 +801,7 @@ var external_node_process_ = __webpack_require__(7742);
|
|
|
801
801
|
// EXTERNAL MODULE: external "node:path"
|
|
802
802
|
var external_node_path_ = __webpack_require__(9411);
|
|
803
803
|
// EXTERNAL MODULE: ../../node_modules/.pnpm/ignore@5.2.0/node_modules/ignore/index.js
|
|
804
|
-
var ignore = __webpack_require__(
|
|
804
|
+
var ignore = __webpack_require__(6302);
|
|
805
805
|
;// CONCATENATED MODULE: ../../node_modules/.pnpm/slash@4.0.0/node_modules/slash/index.js
|
|
806
806
|
function slash(path) {
|
|
807
807
|
const isExtendedLengthPath = /^\\\\\?\\/.test(path);
|