@umijs/bundler-webpack 4.0.0-canary.20220720.1 → 4.0.0-canary.20220729.2
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 +311 -190
- package/client/constants.js +1 -1
- package/client/utils/formatWebpackMessages.js +1 -1
- package/dist/build.js +1 -1
- package/dist/cli.js +1 -1
- package/dist/config/_sampleFeature.js +1 -1
- package/dist/config/assetRules.js +1 -1
- package/dist/config/bundleAnalyzerPlugin.js +1 -1
- package/dist/config/compressPlugin.js +1 -1
- package/dist/config/config.js +1 -1
- package/dist/config/copyPlugin.js +4 -3
- package/dist/config/cssRules.js +1 -1
- package/dist/config/definePlugin.js +1 -1
- package/dist/config/detectDeadCode.js +1 -1
- package/dist/config/detectDeadCodePlugin.js +1 -1
- package/dist/config/fastRefreshPlugin.js +1 -1
- package/dist/config/forkTSCheckerPlugin.js +1 -1
- package/dist/config/harmonyLinkingErrorPlugin.js +1 -1
- package/dist/config/ignorePlugin.js +1 -1
- package/dist/config/javaScriptRules.js +2 -1
- package/dist/config/manifestPlugin.js +1 -1
- package/dist/config/miniCSSExtractPlugin.js +1 -1
- package/dist/config/nodePolyfill.js +1 -1
- package/dist/config/nodePrefixPlugin.js +1 -1
- package/dist/config/progressPlugin.js +1 -1
- package/dist/config/purgecssWebpackPlugin.js +1 -1
- package/dist/config/speedMeasureWebpackPlugin.js +1 -1
- package/dist/config/ssrPlugin.js +1 -1
- package/dist/config/svgRules.js +1 -1
- package/dist/constants.js +1 -1
- package/dist/dev.js +10 -6
- package/dist/index.js +1 -1
- package/dist/loader/svgr.js +1 -1
- package/dist/loader/swc.js +1 -1
- package/dist/parcelCSS.js +1 -1
- package/dist/plugins/ProgressPlugin.js +1 -1
- package/dist/plugins/RuntimePublicPathPlugin.js +2 -2
- package/dist/plugins/_SamplePlugin.js +1 -1
- package/dist/requireHook.js +1 -1
- package/dist/schema.js +5 -1
- package/dist/server/server.js +1 -1
- package/dist/server/ws.js +1 -1
- package/dist/swcPlugins/autoCSSModules.js +1 -1
- package/dist/swcPlugins/changeImportFromString.js +1 -1
- package/dist/swcPlugins/lockCoreJS.js +1 -1
- package/dist/types.d.ts +2 -1
- package/dist/types.js +1 -1
- package/dist/utils/browsersList.js +1 -1
- package/dist/utils/depMatch.js +1 -1
- package/dist/utils/formatWebpackMessages.js +1 -1
- package/dist/utils/getEsBuildTarget.js +1 -1
- package/package.json +10 -12
- package/compiled/react-refresh/LICENSE +0 -21
- package/compiled/react-refresh/index.js +0 -21
- package/compiled/react-refresh/package.json +0 -1
|
@@ -36,7 +36,7 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
36
36
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
|
|
37
37
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
38
38
|
|
|
39
|
-
// detectDeadCodePlugin.ts
|
|
39
|
+
// src/config/detectDeadCodePlugin.ts
|
|
40
40
|
var detectDeadCodePlugin_exports = {};
|
|
41
41
|
__export(detectDeadCodePlugin_exports, {
|
|
42
42
|
addDetectDeadCodePlugin: () => addDetectDeadCodePlugin
|
|
@@ -19,7 +19,7 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
19
19
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
|
|
20
20
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
21
21
|
|
|
22
|
-
// fastRefreshPlugin.ts
|
|
22
|
+
// src/config/fastRefreshPlugin.ts
|
|
23
23
|
var fastRefreshPlugin_exports = {};
|
|
24
24
|
__export(fastRefreshPlugin_exports, {
|
|
25
25
|
addFastRefreshPlugin: () => addFastRefreshPlugin
|
|
@@ -19,7 +19,7 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
19
19
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
|
|
20
20
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
21
21
|
|
|
22
|
-
// forkTSCheckerPlugin.ts
|
|
22
|
+
// src/config/forkTSCheckerPlugin.ts
|
|
23
23
|
var forkTSCheckerPlugin_exports = {};
|
|
24
24
|
__export(forkTSCheckerPlugin_exports, {
|
|
25
25
|
addForkTSCheckerPlugin: () => addForkTSCheckerPlugin
|
|
@@ -16,7 +16,7 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
16
16
|
};
|
|
17
17
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
18
|
|
|
19
|
-
// harmonyLinkingErrorPlugin.ts
|
|
19
|
+
// src/config/harmonyLinkingErrorPlugin.ts
|
|
20
20
|
var harmonyLinkingErrorPlugin_exports = {};
|
|
21
21
|
__export(harmonyLinkingErrorPlugin_exports, {
|
|
22
22
|
addHarmonyLinkingErrorPlugin: () => addHarmonyLinkingErrorPlugin
|
|
@@ -16,7 +16,7 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
16
16
|
};
|
|
17
17
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
18
|
|
|
19
|
-
// ignorePlugin.ts
|
|
19
|
+
// src/config/ignorePlugin.ts
|
|
20
20
|
var ignorePlugin_exports = {};
|
|
21
21
|
__export(ignorePlugin_exports, {
|
|
22
22
|
addIgnorePlugin: () => addIgnorePlugin
|
|
@@ -19,7 +19,7 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
19
19
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
|
|
20
20
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
21
21
|
|
|
22
|
-
// javaScriptRules.ts
|
|
22
|
+
// src/config/javaScriptRules.ts
|
|
23
23
|
var javaScriptRules_exports = {};
|
|
24
24
|
__export(javaScriptRules_exports, {
|
|
25
25
|
addJavaScriptRules: () => addJavaScriptRules
|
|
@@ -95,6 +95,7 @@ async function addJavaScriptRules(opts) {
|
|
|
95
95
|
babelrc: false,
|
|
96
96
|
cacheDirectory: false,
|
|
97
97
|
targets: userConfig.targets,
|
|
98
|
+
customize: userConfig.babelLoaderCustomize,
|
|
98
99
|
presets: [
|
|
99
100
|
opts.babelPreset || [
|
|
100
101
|
require.resolve("@umijs/babel-preset-umi"),
|
|
@@ -30,7 +30,7 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
30
30
|
};
|
|
31
31
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
32
32
|
|
|
33
|
-
// manifestPlugin.ts
|
|
33
|
+
// src/config/manifestPlugin.ts
|
|
34
34
|
var manifestPlugin_exports = {};
|
|
35
35
|
__export(manifestPlugin_exports, {
|
|
36
36
|
addManifestPlugin: () => addManifestPlugin
|
|
@@ -19,7 +19,7 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
19
19
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
|
|
20
20
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
21
21
|
|
|
22
|
-
// miniCSSExtractPlugin.ts
|
|
22
|
+
// src/config/miniCSSExtractPlugin.ts
|
|
23
23
|
var miniCSSExtractPlugin_exports = {};
|
|
24
24
|
__export(miniCSSExtractPlugin_exports, {
|
|
25
25
|
addMiniCSSExtractPlugin: () => addMiniCSSExtractPlugin
|
|
@@ -33,7 +33,7 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
33
33
|
};
|
|
34
34
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
35
35
|
|
|
36
|
-
// nodePolyfill.ts
|
|
36
|
+
// src/config/nodePolyfill.ts
|
|
37
37
|
var nodePolyfill_exports = {};
|
|
38
38
|
__export(nodePolyfill_exports, {
|
|
39
39
|
addNodePolyfill: () => addNodePolyfill
|
|
@@ -16,7 +16,7 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
16
16
|
};
|
|
17
17
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
18
|
|
|
19
|
-
// nodePrefixPlugin.ts
|
|
19
|
+
// src/config/nodePrefixPlugin.ts
|
|
20
20
|
var nodePrefixPlugin_exports = {};
|
|
21
21
|
__export(nodePrefixPlugin_exports, {
|
|
22
22
|
addNodePrefixPlugin: () => addNodePrefixPlugin
|
|
@@ -19,7 +19,7 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
19
19
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
|
|
20
20
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
21
21
|
|
|
22
|
-
// progressPlugin.ts
|
|
22
|
+
// src/config/progressPlugin.ts
|
|
23
23
|
var progressPlugin_exports = {};
|
|
24
24
|
__export(progressPlugin_exports, {
|
|
25
25
|
addProgressPlugin: () => addProgressPlugin
|
|
@@ -16,7 +16,7 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
16
16
|
};
|
|
17
17
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
18
|
|
|
19
|
-
// purgecssWebpackPlugin.ts
|
|
19
|
+
// src/config/purgecssWebpackPlugin.ts
|
|
20
20
|
var purgecssWebpackPlugin_exports = {};
|
|
21
21
|
__export(purgecssWebpackPlugin_exports, {
|
|
22
22
|
applyPurgeCSSWebpackPlugin: () => applyPurgeCSSWebpackPlugin
|
|
@@ -19,7 +19,7 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
19
19
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
|
|
20
20
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
21
21
|
|
|
22
|
-
// speedMeasureWebpackPlugin.ts
|
|
22
|
+
// src/config/speedMeasureWebpackPlugin.ts
|
|
23
23
|
var speedMeasureWebpackPlugin_exports = {};
|
|
24
24
|
__export(speedMeasureWebpackPlugin_exports, {
|
|
25
25
|
addSpeedMeasureWebpackPlugin: () => addSpeedMeasureWebpackPlugin
|
package/dist/config/ssrPlugin.js
CHANGED
|
@@ -16,7 +16,7 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
16
16
|
};
|
|
17
17
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
18
|
|
|
19
|
-
// ssrPlugin.ts
|
|
19
|
+
// src/config/ssrPlugin.ts
|
|
20
20
|
var ssrPlugin_exports = {};
|
|
21
21
|
__export(ssrPlugin_exports, {
|
|
22
22
|
default: () => addSSRPlugin
|
package/dist/config/svgRules.js
CHANGED
|
@@ -36,7 +36,7 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
36
36
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
|
|
37
37
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
38
38
|
|
|
39
|
-
// svgRules.ts
|
|
39
|
+
// src/config/svgRules.ts
|
|
40
40
|
var svgRules_exports = {};
|
|
41
41
|
__export(svgRules_exports, {
|
|
42
42
|
addSVGRules: () => addSVGRules
|
package/dist/constants.js
CHANGED
|
@@ -16,7 +16,7 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
16
16
|
};
|
|
17
17
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
18
|
|
|
19
|
-
// constants.ts
|
|
19
|
+
// src/constants.ts
|
|
20
20
|
var constants_exports = {};
|
|
21
21
|
__export(constants_exports, {
|
|
22
22
|
DEFAULT_BROWSER_TARGETS: () => DEFAULT_BROWSER_TARGETS,
|
package/dist/dev.js
CHANGED
|
@@ -36,7 +36,7 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
36
36
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
|
|
37
37
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
38
38
|
|
|
39
|
-
// dev.ts
|
|
39
|
+
// src/dev.ts
|
|
40
40
|
var dev_exports = {};
|
|
41
41
|
__export(dev_exports, {
|
|
42
42
|
dev: () => dev,
|
|
@@ -61,7 +61,7 @@ function stripUndefined(obj) {
|
|
|
61
61
|
return obj;
|
|
62
62
|
}
|
|
63
63
|
async function dev(opts) {
|
|
64
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
64
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k;
|
|
65
65
|
const cacheDirectoryPath = (0, import_path.resolve)(opts.rootDir || opts.cwd, opts.config.cacheDirectoryPath || "node_modules/.cache");
|
|
66
66
|
const enableMFSU = opts.config.mfsu !== false;
|
|
67
67
|
let mfsu = null;
|
|
@@ -83,6 +83,9 @@ async function dev(opts) {
|
|
|
83
83
|
tmpBase: ((_d = opts.config.mfsu) == null ? void 0 : _d.cacheDirectory) || (0, import_path.join)(cacheDirectoryPath, "mfsu"),
|
|
84
84
|
onMFSUProgress: opts.onMFSUProgress,
|
|
85
85
|
unMatchLibs: (_e = opts.config.mfsu) == null ? void 0 : _e.exclude,
|
|
86
|
+
shared: (_f = opts.config.mfsu) == null ? void 0 : _f.shared,
|
|
87
|
+
remoteAliases: (_g = opts.config.mfsu) == null ? void 0 : _g.remoteAliases,
|
|
88
|
+
remoteName: (_h = opts.config.mfsu) == null ? void 0 : _h.remoteName,
|
|
86
89
|
getCacheDependency() {
|
|
87
90
|
return stripUndefined({
|
|
88
91
|
version: require("../package.json").version,
|
|
@@ -93,7 +96,8 @@ async function dev(opts) {
|
|
|
93
96
|
runtimePublicPath: opts.config.runtimePublicPath,
|
|
94
97
|
publicPath: opts.config.publicPath
|
|
95
98
|
});
|
|
96
|
-
}
|
|
99
|
+
},
|
|
100
|
+
serverBase: `${opts.config.https ? "https" : "http"}://${opts.host}:${opts.port || 8e3}`
|
|
97
101
|
});
|
|
98
102
|
}
|
|
99
103
|
const webpackConfig = await (0, import_config.getConfig)({
|
|
@@ -132,14 +136,14 @@ async function dev(opts) {
|
|
|
132
136
|
hash: true,
|
|
133
137
|
staticPathPrefix: import_mfsu.MF_DEP_PREFIX,
|
|
134
138
|
name: import_constants.MFSU_NAME,
|
|
135
|
-
chainWebpack: (
|
|
139
|
+
chainWebpack: (_i = opts.config.mfsu) == null ? void 0 : _i.chainWebpack,
|
|
136
140
|
cache: {
|
|
137
|
-
buildDependencies: (
|
|
141
|
+
buildDependencies: (_j = opts.cache) == null ? void 0 : _j.buildDependencies,
|
|
138
142
|
cacheDirectory: (0, import_path.join)(cacheDirectoryPath, "mfsu-deps")
|
|
139
143
|
},
|
|
140
144
|
pkg: opts.pkg
|
|
141
145
|
});
|
|
142
|
-
(
|
|
146
|
+
(_k = webpackConfig.resolve).alias || (_k.alias = {});
|
|
143
147
|
["@umijs/utils/compiled/strip-ansi", "react-error-overlay"].forEach((dep) => {
|
|
144
148
|
webpackConfig.resolve.alias[dep] = require.resolve(dep);
|
|
145
149
|
});
|
package/dist/index.js
CHANGED
|
@@ -13,7 +13,7 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
13
13
|
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
14
14
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
15
|
|
|
16
|
-
// index.ts
|
|
16
|
+
// src/index.ts
|
|
17
17
|
var src_exports = {};
|
|
18
18
|
module.exports = __toCommonJS(src_exports);
|
|
19
19
|
var import_requireHook = require("./requireHook");
|
package/dist/loader/svgr.js
CHANGED
|
@@ -19,7 +19,7 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
19
19
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
|
|
20
20
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
21
21
|
|
|
22
|
-
// svgr.ts
|
|
22
|
+
// src/loader/svgr.ts
|
|
23
23
|
var svgr_exports = {};
|
|
24
24
|
__export(svgr_exports, {
|
|
25
25
|
default: () => svgr_default
|
package/dist/loader/swc.js
CHANGED
|
@@ -45,7 +45,7 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
45
45
|
};
|
|
46
46
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
47
47
|
|
|
48
|
-
// swc.ts
|
|
48
|
+
// src/loader/swc.ts
|
|
49
49
|
var swc_exports = {};
|
|
50
50
|
__export(swc_exports, {
|
|
51
51
|
default: () => swc_default
|
package/dist/parcelCSS.js
CHANGED
|
@@ -19,7 +19,7 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
19
19
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
|
|
20
20
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
21
21
|
|
|
22
|
-
// parcelCSS.ts
|
|
22
|
+
// src/parcelCSS.ts
|
|
23
23
|
var parcelCSS_exports = {};
|
|
24
24
|
__export(parcelCSS_exports, {
|
|
25
25
|
parcelCSS: () => parcelCSS
|
|
@@ -16,7 +16,7 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
16
16
|
};
|
|
17
17
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
18
|
|
|
19
|
-
// ProgressPlugin.ts
|
|
19
|
+
// src/plugins/ProgressPlugin.ts
|
|
20
20
|
var ProgressPlugin_exports = {};
|
|
21
21
|
__export(ProgressPlugin_exports, {
|
|
22
22
|
default: () => ProgressPlugin_default
|
|
@@ -16,7 +16,7 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
16
16
|
};
|
|
17
17
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
18
|
|
|
19
|
-
// RuntimePublicPathPlugin.ts
|
|
19
|
+
// src/plugins/RuntimePublicPathPlugin.ts
|
|
20
20
|
var RuntimePublicPathPlugin_exports = {};
|
|
21
21
|
__export(RuntimePublicPathPlugin_exports, {
|
|
22
22
|
RuntimePublicPathPlugin: () => RuntimePublicPathPlugin
|
|
@@ -30,7 +30,7 @@ var RuntimePublicPathPlugin = class {
|
|
|
30
30
|
if (module2.constructor.name === "PublicPathRuntimeModule") {
|
|
31
31
|
if (module2.getGeneratedCode().includes("webpack:///mini-css-extract-plugin"))
|
|
32
32
|
return;
|
|
33
|
-
module2._cachedGeneratedCode = `__webpack_require__.p = (globalThis
|
|
33
|
+
module2._cachedGeneratedCode = `__webpack_require__.p = (typeof globalThis !== undefined ? globalThis : window).publicPath || '/';`;
|
|
34
34
|
}
|
|
35
35
|
});
|
|
36
36
|
});
|
|
@@ -16,7 +16,7 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
16
16
|
};
|
|
17
17
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
18
|
|
|
19
|
-
// _SamplePlugin.ts
|
|
19
|
+
// src/plugins/_SamplePlugin.ts
|
|
20
20
|
var SamplePlugin_exports = {};
|
|
21
21
|
__export(SamplePlugin_exports, {
|
|
22
22
|
default: () => SamplePlugin_default
|
package/dist/requireHook.js
CHANGED
|
@@ -14,7 +14,7 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
14
14
|
};
|
|
15
15
|
var __toESM = (mod2, isNodeMode, target) => (target = mod2 != null ? __create(__getProtoOf(mod2)) : {}, __copyProps(isNodeMode || !mod2 || !mod2.__esModule ? __defProp(target, "default", { value: mod2, enumerable: true }) : target, mod2));
|
|
16
16
|
|
|
17
|
-
// requireHook.ts
|
|
17
|
+
// src/requireHook.ts
|
|
18
18
|
var import_deepImports = __toESM(require("@umijs/bundler-webpack/compiled/webpack/deepImports.json"));
|
|
19
19
|
var import_path = require("path");
|
|
20
20
|
var PKG_ROOT = (0, import_path.join)(__dirname, "../");
|
package/dist/schema.js
CHANGED
|
@@ -16,7 +16,7 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
16
16
|
};
|
|
17
17
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
18
|
|
|
19
|
-
// schema.ts
|
|
19
|
+
// src/schema.ts
|
|
20
20
|
var schema_exports = {};
|
|
21
21
|
__export(schema_exports, {
|
|
22
22
|
getSchemas: () => getSchemas
|
|
@@ -56,6 +56,7 @@ function getSchemas() {
|
|
|
56
56
|
alias: (Joi) => Joi.object(),
|
|
57
57
|
autoCSSModules: (Joi) => Joi.boolean(),
|
|
58
58
|
autoprefixer: (Joi) => Joi.object(),
|
|
59
|
+
babelLoaderCustomize: (Joi) => Joi.string(),
|
|
59
60
|
cacheDirectoryPath: (Joi) => Joi.string(),
|
|
60
61
|
chainWebpack: (Joi) => Joi.function(),
|
|
61
62
|
copy: (Joi) => Joi.array().items(Joi.alternatives().try(Joi.object({
|
|
@@ -97,7 +98,10 @@ function getSchemas() {
|
|
|
97
98
|
exclude: Joi.array().items(Joi.alternatives().try(Joi.string(), Joi.object().regex())),
|
|
98
99
|
include: Joi.array().items(Joi.string()),
|
|
99
100
|
mfName: Joi.string(),
|
|
101
|
+
remoteAliases: Joi.array().items(Joi.string()),
|
|
102
|
+
remoteName: Joi.string(),
|
|
100
103
|
runtimePublicPath: Joi.boolean(),
|
|
104
|
+
shared: Joi.object(),
|
|
101
105
|
strategy: Joi.string().valid("eager", "normal").default("normal")
|
|
102
106
|
}), Joi.boolean()),
|
|
103
107
|
outputPath: (Joi) => Joi.string(),
|
package/dist/server/server.js
CHANGED
|
@@ -36,7 +36,7 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
36
36
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
|
|
37
37
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
38
38
|
|
|
39
|
-
// server.ts
|
|
39
|
+
// src/server/server.ts
|
|
40
40
|
var server_exports = {};
|
|
41
41
|
__export(server_exports, {
|
|
42
42
|
createServer: () => createServer
|
package/dist/server/ws.js
CHANGED
|
@@ -19,7 +19,7 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
19
19
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
|
|
20
20
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
21
21
|
|
|
22
|
-
// ws.ts
|
|
22
|
+
// src/server/ws.ts
|
|
23
23
|
var ws_exports = {};
|
|
24
24
|
__export(ws_exports, {
|
|
25
25
|
createWebSocketServer: () => createWebSocketServer
|
|
@@ -19,7 +19,7 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
19
19
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
|
|
20
20
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
21
21
|
|
|
22
|
-
// autoCSSModules.ts
|
|
22
|
+
// src/swcPlugins/autoCSSModules.ts
|
|
23
23
|
var autoCSSModules_exports = {};
|
|
24
24
|
__export(autoCSSModules_exports, {
|
|
25
25
|
default: () => autoCSSModules_default
|
|
@@ -16,7 +16,7 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
16
16
|
};
|
|
17
17
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
18
|
|
|
19
|
-
// changeImportFromString.ts
|
|
19
|
+
// src/swcPlugins/changeImportFromString.ts
|
|
20
20
|
var changeImportFromString_exports = {};
|
|
21
21
|
__export(changeImportFromString_exports, {
|
|
22
22
|
changeImportFromString: () => changeImportFromString
|
|
@@ -19,7 +19,7 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
19
19
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
|
|
20
20
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
21
21
|
|
|
22
|
-
// lockCoreJS.ts
|
|
22
|
+
// src/swcPlugins/lockCoreJS.ts
|
|
23
23
|
var lockCoreJS_exports = {};
|
|
24
24
|
__export(lockCoreJS_exports, {
|
|
25
25
|
default: () => lockCoreJS_default
|
package/dist/types.d.ts
CHANGED
|
@@ -75,7 +75,7 @@ export interface IConfig {
|
|
|
75
75
|
extraPostCSSPlugins?: any[];
|
|
76
76
|
hash?: boolean;
|
|
77
77
|
ignoreMomentLocale?: boolean;
|
|
78
|
-
jsMinifier?: JSMinifier
|
|
78
|
+
jsMinifier?: `${JSMinifier}`;
|
|
79
79
|
jsMinifierOptions?: {
|
|
80
80
|
[key: string]: any;
|
|
81
81
|
};
|
|
@@ -110,6 +110,7 @@ export interface IConfig {
|
|
|
110
110
|
[key: string]: any;
|
|
111
111
|
};
|
|
112
112
|
writeToDisk?: boolean;
|
|
113
|
+
babelLoaderCustomize?: string;
|
|
113
114
|
[key: string]: any;
|
|
114
115
|
}
|
|
115
116
|
export interface SwcOptions extends SwcConfig {
|
package/dist/types.js
CHANGED
|
@@ -16,7 +16,7 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
16
16
|
};
|
|
17
17
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
18
|
|
|
19
|
-
// types.ts
|
|
19
|
+
// src/types.ts
|
|
20
20
|
var types_exports = {};
|
|
21
21
|
__export(types_exports, {
|
|
22
22
|
CSSMinifier: () => CSSMinifier,
|
|
@@ -16,7 +16,7 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
16
16
|
};
|
|
17
17
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
18
|
|
|
19
|
-
// browsersList.ts
|
|
19
|
+
// src/utils/browsersList.ts
|
|
20
20
|
var browsersList_exports = {};
|
|
21
21
|
__export(browsersList_exports, {
|
|
22
22
|
getBrowsersList: () => getBrowsersList
|
package/dist/utils/depMatch.js
CHANGED
|
@@ -16,7 +16,7 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
16
16
|
};
|
|
17
17
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
18
|
|
|
19
|
-
// depMatch.ts
|
|
19
|
+
// src/utils/depMatch.ts
|
|
20
20
|
var depMatch_exports = {};
|
|
21
21
|
__export(depMatch_exports, {
|
|
22
22
|
cleanCache: () => cleanCache,
|
|
@@ -19,7 +19,7 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
19
19
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
|
|
20
20
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
21
21
|
|
|
22
|
-
// formatWebpackMessages.ts
|
|
22
|
+
// src/utils/formatWebpackMessages.ts
|
|
23
23
|
var formatWebpackMessages_exports = {};
|
|
24
24
|
__export(formatWebpackMessages_exports, {
|
|
25
25
|
formatMessage: () => formatMessage,
|
|
@@ -16,7 +16,7 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
16
16
|
};
|
|
17
17
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
18
|
|
|
19
|
-
// getEsBuildTarget.ts
|
|
19
|
+
// src/utils/getEsBuildTarget.ts
|
|
20
20
|
var getEsBuildTarget_exports = {};
|
|
21
21
|
__export(getEsBuildTarget_exports, {
|
|
22
22
|
getEsBuildTarget: () => getEsBuildTarget
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umijs/bundler-webpack",
|
|
3
|
-
"version": "4.0.0-canary.
|
|
3
|
+
"version": "4.0.0-canary.20220729.2",
|
|
4
4
|
"description": "@umijs/bundler-webpack",
|
|
5
5
|
"homepage": "https://github.com/umijs/umi/tree/master/packages/bundler-webpack#readme",
|
|
6
6
|
"bugs": "https://github.com/umijs/umi/issues",
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
"dist"
|
|
22
22
|
],
|
|
23
23
|
"scripts": {
|
|
24
|
-
"build": "
|
|
24
|
+
"build": "umi-scripts father build",
|
|
25
25
|
"build:deps": "umi-scripts bundleDeps",
|
|
26
|
-
"dev": "
|
|
26
|
+
"dev": "umi-scripts father dev",
|
|
27
27
|
"generate:webpackPackages": "zx ./scripts/generateWebpackPackages.mjs",
|
|
28
28
|
"test": "umi-scripts jest-turbo"
|
|
29
29
|
},
|
|
@@ -34,11 +34,11 @@
|
|
|
34
34
|
"@svgr/plugin-jsx": "^6.2.1",
|
|
35
35
|
"@svgr/plugin-svgo": "^6.2.0",
|
|
36
36
|
"@types/hapi__joi": "17.1.8",
|
|
37
|
-
"@umijs/babel-preset-umi": "4.0.0-canary.
|
|
38
|
-
"@umijs/bundler-utils": "4.0.0-canary.
|
|
37
|
+
"@umijs/babel-preset-umi": "4.0.0-canary.20220729.2",
|
|
38
|
+
"@umijs/bundler-utils": "4.0.0-canary.20220729.2",
|
|
39
39
|
"@umijs/case-sensitive-paths-webpack-plugin": "^1.0.1",
|
|
40
|
-
"@umijs/mfsu": "4.0.0-canary.
|
|
41
|
-
"@umijs/utils": "4.0.0-canary.
|
|
40
|
+
"@umijs/mfsu": "4.0.0-canary.20220729.2",
|
|
41
|
+
"@umijs/utils": "4.0.0-canary.20220729.2",
|
|
42
42
|
"cors": "^2.8.5",
|
|
43
43
|
"css-loader": "6.7.1",
|
|
44
44
|
"es5-imcompatible-versions": "^0.1.73",
|
|
@@ -47,7 +47,8 @@
|
|
|
47
47
|
"node-libs-browser": "2.2.1",
|
|
48
48
|
"postcss": "^8.4.13",
|
|
49
49
|
"postcss-preset-env": "7.5.0",
|
|
50
|
-
"react-error-overlay": "6.0.9"
|
|
50
|
+
"react-error-overlay": "6.0.9",
|
|
51
|
+
"react-refresh": "0.14.0"
|
|
51
52
|
},
|
|
52
53
|
"devDependencies": {
|
|
53
54
|
"@swc/core": "1.2.165",
|
|
@@ -67,7 +68,6 @@
|
|
|
67
68
|
"postcss-flexbugs-fixes": "5.0.2",
|
|
68
69
|
"postcss-loader": "6.2.1",
|
|
69
70
|
"purgecss-webpack-plugin": "4.1.3",
|
|
70
|
-
"react-refresh": "0.12.0",
|
|
71
71
|
"sass-loader": "12.6.0",
|
|
72
72
|
"schema-utils": "4.0.0",
|
|
73
73
|
"speed-measure-webpack-plugin": "1.5.0",
|
|
@@ -120,8 +120,7 @@
|
|
|
120
120
|
"webpack-manifest-plugin",
|
|
121
121
|
"webpack-sources",
|
|
122
122
|
"ws",
|
|
123
|
-
"./bundles/webpack/bundle"
|
|
124
|
-
"./bundles/react-refresh/babel"
|
|
123
|
+
"./bundles/webpack/bundle"
|
|
125
124
|
],
|
|
126
125
|
"externals": {
|
|
127
126
|
"@swc/core": "@swc/core",
|
|
@@ -173,7 +172,6 @@
|
|
|
173
172
|
"postcss-flexbugs-fixes",
|
|
174
173
|
"postcss-loader",
|
|
175
174
|
"purgecss-webpack-plugin",
|
|
176
|
-
"react-refresh",
|
|
177
175
|
"sass-loader",
|
|
178
176
|
"speed-measure-webpack-plugin",
|
|
179
177
|
"style-loader",
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) Facebook, Inc. and its affiliates.
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
(function(){"use strict";var e={653:function(e,t){
|
|
2
|
-
/**
|
|
3
|
-
* @license React
|
|
4
|
-
* react-refresh-runtime.development.js
|
|
5
|
-
*
|
|
6
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
7
|
-
*
|
|
8
|
-
* This source code is licensed under the MIT license found in the
|
|
9
|
-
* LICENSE file in the root directory of this source tree.
|
|
10
|
-
*/
|
|
11
|
-
if(process.env.NODE_ENV!=="production"){(function(){"use strict";var e=Symbol.for("react.forward_ref");var r=Symbol.for("react.memo");var n=typeof WeakMap==="function"?WeakMap:Map;var o=new Map;var i=new n;var a=new n;var u=new n;var f=[];var s=new Map;var c=new Map;var l=new Set;var d=new Set;var p=typeof WeakMap==="function"?new WeakMap:null;var y=false;function computeFullKey(e){if(e.fullKey!==null){return e.fullKey}var t=e.ownKey;var r;try{r=e.getCustomHooks()}catch(r){e.forceReset=true;e.fullKey=t;return t}for(var n=0;n<r.length;n++){var o=r[n];if(typeof o!=="function"){e.forceReset=true;e.fullKey=t;return t}var i=a.get(o);if(i===undefined){continue}var u=computeFullKey(i);if(i.forceReset){e.forceReset=true}t+="\n---\n"+u}e.fullKey=t;return t}function haveEqualSignatures(e,t){var r=a.get(e);var n=a.get(t);if(r===undefined&&n===undefined){return true}if(r===undefined||n===undefined){return false}if(computeFullKey(r)!==computeFullKey(n)){return false}if(n.forceReset){return false}return true}function isReactClass(e){return e.prototype&&e.prototype.isReactComponent}function canPreserveStateBetween(e,t){if(isReactClass(e)||isReactClass(t)){return false}if(haveEqualSignatures(e,t)){return true}return false}function resolveFamily(e){return u.get(e)}function cloneMap(e){var t=new Map;e.forEach((function(e,r){t.set(r,e)}));return t}function cloneSet(e){var t=new Set;e.forEach((function(e){t.add(e)}));return t}function getProperty(e,t){try{return e[t]}catch(e){return undefined}}function performReactRefresh(){if(f.length===0){return null}if(y){return null}y=true;try{var e=new Set;var t=new Set;var r=f;f=[];r.forEach((function(r){var n=r[0],o=r[1];var i=n.current;u.set(i,n);u.set(o,n);n.current=o;if(canPreserveStateBetween(i,o)){t.add(n)}else{e.add(n)}}));var n={updatedFamilies:t,staleFamilies:e};s.forEach((function(e){e.setRefreshHandler(resolveFamily)}));var o=false;var i=null;var a=cloneSet(d);var h=cloneSet(l);var v=cloneMap(c);a.forEach((function(e){var t=v.get(e);if(t===undefined){throw new Error("Could not find helpers for a root. This is a bug in React Refresh.")}if(!d.has(e)){}if(p===null){return}if(!p.has(e)){return}var r=p.get(e);try{t.scheduleRoot(e,r)}catch(e){if(!o){o=true;i=e}}}));h.forEach((function(e){var t=v.get(e);if(t===undefined){throw new Error("Could not find helpers for a root. This is a bug in React Refresh.")}if(!l.has(e)){}try{t.scheduleRefresh(e,n)}catch(e){if(!o){o=true;i=e}}}));if(o){throw i}return n}finally{y=false}}function register(t,n){{if(t===null){return}if(typeof t!=="function"&&typeof t!=="object"){return}if(i.has(t)){return}var a=o.get(n);if(a===undefined){a={current:t};o.set(n,a)}else{f.push([a,t])}i.set(t,a);if(typeof t==="object"&&t!==null){switch(getProperty(t,"$$typeof")){case e:register(t.render,n+"$render");break;case r:register(t.type,n+"$type");break}}}}function setSignature(t,n){var o=arguments.length>2&&arguments[2]!==undefined?arguments[2]:false;var i=arguments.length>3?arguments[3]:undefined;{if(!a.has(t)){a.set(t,{forceReset:o,ownKey:n,fullKey:null,getCustomHooks:i||function(){return[]}})}if(typeof t==="object"&&t!==null){switch(getProperty(t,"$$typeof")){case e:setSignature(t.render,n,o,i);break;case r:setSignature(t.type,n,o,i);break}}}}function collectCustomHooksForSignature(e){{var t=a.get(e);if(t!==undefined){computeFullKey(t)}}}function getFamilyByID(e){{return o.get(e)}}function getFamilyByType(e){{return i.get(e)}}function findAffectedHostInstances(e){{var t=new Set;l.forEach((function(r){var n=c.get(r);if(n===undefined){throw new Error("Could not find helpers for a root. This is a bug in React Refresh.")}var o=n.findHostInstancesForRefresh(r,e);o.forEach((function(e){t.add(e)}))}));return t}}function injectIntoGlobalHook(e){{var t=e.__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t===undefined){var r=0;e.__REACT_DEVTOOLS_GLOBAL_HOOK__=t={renderers:new Map,supportsFiber:true,inject:function(e){return r++},onScheduleFiberRoot:function(e,t,r){},onCommitFiberRoot:function(e,t,r,n){},onCommitFiberUnmount:function(){}}}if(t.isDisabled){console["warn"]("Something has shimmed the React DevTools global hook (__REACT_DEVTOOLS_GLOBAL_HOOK__). "+"Fast Refresh is not compatible with this shim and will be disabled.");return}var n=t.inject;t.inject=function(e){var t=n.apply(this,arguments);if(typeof e.scheduleRefresh==="function"&&typeof e.setRefreshHandler==="function"){s.set(t,e)}return t};t.renderers.forEach((function(e,t){if(typeof e.scheduleRefresh==="function"&&typeof e.setRefreshHandler==="function"){s.set(t,e)}}));var o=t.onCommitFiberRoot;var i=t.onScheduleFiberRoot||function(){};t.onScheduleFiberRoot=function(e,t,r){if(!y){d.delete(t);if(p!==null){p.set(t,r)}}return i.apply(this,arguments)};t.onCommitFiberRoot=function(e,t,r,n){var i=s.get(e);if(i!==undefined){c.set(t,i);var a=t.current;var u=a.alternate;if(u!==null){var f=u.memoizedState!=null&&u.memoizedState.element!=null&&l.has(t);var p=a.memoizedState!=null&&a.memoizedState.element!=null;if(!f&&p){l.add(t);d.delete(t)}else if(f&&p);else if(f&&!p){l.delete(t);if(n){d.add(t)}else{c.delete(t)}}else if(!f&&!p){if(n){d.add(t)}}}else{l.add(t)}}return o.apply(this,arguments)}}}function hasUnrecoverableErrors(){return false}function _getMountedRootCount(){{return l.size}}function createSignatureFunctionForTransform(){{var e;var t;var r=false;return function(n,o,i,a){if(typeof o==="string"){if(!e){e=n;t=typeof a==="function"}if(n!=null&&(typeof n==="function"||typeof n==="object")){setSignature(n,o,i,a)}return n}else{if(!r&&t){r=true;collectCustomHooksForSignature(e)}}}}}function isLikelyComponentType(t){{switch(typeof t){case"function":{if(t.prototype!=null){if(t.prototype.isReactComponent){return true}var n=Object.getOwnPropertyNames(t.prototype);if(n.length>1||n[0]!=="constructor"){return false}if(t.prototype.__proto__!==Object.prototype){return false}}var o=t.name||t.displayName;return typeof o==="string"&&/^[A-Z]/.test(o)}case"object":{if(t!=null){switch(getProperty(t,"$$typeof")){case e:case r:return true;default:return false}}return false}default:{return false}}}}t._getMountedRootCount=_getMountedRootCount;t.collectCustomHooksForSignature=collectCustomHooksForSignature;t.createSignatureFunctionForTransform=createSignatureFunctionForTransform;t.findAffectedHostInstances=findAffectedHostInstances;t.getFamilyByID=getFamilyByID;t.getFamilyByType=getFamilyByType;t.hasUnrecoverableErrors=hasUnrecoverableErrors;t.injectIntoGlobalHook=injectIntoGlobalHook;t.isLikelyComponentType=isLikelyComponentType;t.performReactRefresh=performReactRefresh;t.register=register;t.setSignature=setSignature})()}},665:function(){
|
|
12
|
-
/**
|
|
13
|
-
* @license React
|
|
14
|
-
* react-refresh-runtime.production.min.js
|
|
15
|
-
*
|
|
16
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
17
|
-
*
|
|
18
|
-
* This source code is licensed under the MIT license found in the
|
|
19
|
-
* LICENSE file in the root directory of this source tree.
|
|
20
|
-
*/
|
|
21
|
-
throw Error("React Refresh runtime should not be included in the production bundle.")},999:function(e,t,r){if(process.env.NODE_ENV==="production"){e.exports=r(665)}else{e.exports=r(653)}}};var t={};function __nccwpck_require__(r){var n=t[r];if(n!==undefined){return n.exports}var o=t[r]={exports:{}};var i=true;try{e[r](o,o.exports,__nccwpck_require__);i=false}finally{if(i)delete t[r]}return o.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var r=__nccwpck_require__(999);module.exports=r})();
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"name":"react-refresh","license":"MIT"}
|