@umijs/bundler-webpack 4.0.0-canary.20220718.2 → 4.0.0-canary.20220720.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.d.ts +1 -0
- package/client/client/client.js +172 -192
- package/client/constants.d.ts +15 -0
- package/client/constants.js +28 -19
- package/client/utils/formatWebpackMessages.d.ts +12 -0
- package/client/utils/formatWebpackMessages.js +68 -86
- package/dist/build.d.ts +1 -2
- package/dist/build.js +105 -68
- package/dist/cli.d.ts +0 -1
- package/dist/cli.js +77 -69
- package/dist/config/_sampleFeature.d.ts +0 -1
- package/dist/config/_sampleFeature.js +33 -9
- package/dist/config/assetRules.d.ts +0 -1
- package/dist/config/assetRules.js +45 -36
- package/dist/config/bundleAnalyzerPlugin.d.ts +0 -1
- package/dist/config/bundleAnalyzerPlugin.js +39 -17
- package/dist/config/compressPlugin.d.ts +0 -1
- package/dist/config/compressPlugin.js +113 -95
- package/dist/config/config.d.ts +1 -1
- package/dist/config/config.js +204 -218
- package/dist/config/copyPlugin.d.ts +0 -1
- package/dist/config/copyPlugin.js +58 -40
- package/dist/config/cssRules.d.ts +0 -1
- package/dist/config/cssRules.js +136 -131
- package/dist/config/definePlugin.d.ts +0 -1
- package/dist/config/definePlugin.js +71 -35
- package/dist/config/detectDeadCode.d.ts +0 -1
- package/dist/config/detectDeadCode.js +120 -108
- package/dist/config/detectDeadCodePlugin.d.ts +0 -1
- package/dist/config/detectDeadCodePlugin.js +78 -63
- package/dist/config/fastRefreshPlugin.d.ts +0 -1
- package/dist/config/fastRefreshPlugin.js +39 -20
- package/dist/config/forkTSCheckerPlugin.d.ts +0 -1
- package/dist/config/forkTSCheckerPlugin.js +38 -18
- package/dist/config/harmonyLinkingErrorPlugin.d.ts +0 -1
- package/dist/config/harmonyLinkingErrorPlugin.js +48 -29
- package/dist/config/ignorePlugin.d.ts +0 -1
- package/dist/config/ignorePlugin.js +38 -14
- package/dist/config/javaScriptRules.d.ts +0 -1
- package/dist/config/javaScriptRules.js +146 -175
- package/dist/config/manifestPlugin.d.ts +0 -1
- package/dist/config/manifestPlugin.js +51 -15
- package/dist/config/miniCSSExtractPlugin.d.ts +0 -1
- package/dist/config/miniCSSExtractPlugin.js +42 -22
- package/dist/config/nodePolyfill.d.ts +0 -1
- package/dist/config/nodePolyfill.js +65 -26
- package/dist/config/nodePrefixPlugin.d.ts +0 -1
- package/dist/config/nodePrefixPlugin.js +36 -12
- package/dist/config/progressPlugin.d.ts +0 -1
- package/dist/config/progressPlugin.js +37 -13
- package/dist/config/purgecssWebpackPlugin.d.ts +0 -1
- package/dist/config/purgecssWebpackPlugin.js +41 -19
- package/dist/config/speedMeasureWebpackPlugin.d.ts +0 -1
- package/dist/config/speedMeasureWebpackPlugin.js +41 -20
- package/dist/config/ssrPlugin.d.ts +0 -1
- package/dist/config/ssrPlugin.js +83 -63
- package/dist/config/svgRules.d.ts +0 -1
- package/dist/config/svgRules.js +74 -46
- package/dist/constants.d.ts +0 -1
- package/dist/constants.js +57 -22
- package/dist/dev.d.ts +1 -2
- package/dist/dev.js +170 -135
- package/dist/index.d.ts +0 -1
- package/dist/index.js +22 -20
- package/dist/loader/svgr.d.ts +0 -1
- package/dist/loader/svgr.js +73 -54
- package/dist/loader/swc.d.ts +0 -1
- package/dist/loader/swc.js +110 -69
- package/dist/parcelCSS.d.ts +0 -1
- package/dist/parcelCSS.js +31 -27
- package/dist/plugins/ProgressPlugin.d.ts +0 -1
- package/dist/plugins/ProgressPlugin.js +66 -43
- package/dist/plugins/RuntimePublicPathPlugin.d.ts +0 -1
- package/dist/plugins/RuntimePublicPathPlugin.js +42 -25
- package/dist/plugins/_SamplePlugin.d.ts +0 -1
- package/dist/plugins/_SamplePlugin.js +39 -14
- package/dist/requireHook.d.ts +0 -1
- package/dist/requireHook.js +37 -27
- package/dist/schema.d.ts +0 -1
- package/dist/schema.js +119 -97
- package/dist/server/server.d.ts +0 -2
- package/dist/server/server.js +214 -184
- package/dist/server/ws.d.ts +0 -3
- package/dist/server/ws.js +63 -38
- package/dist/swcPlugins/autoCSSModules.d.ts +0 -1
- package/dist/swcPlugins/autoCSSModules.js +50 -31
- package/dist/swcPlugins/changeImportFromString.d.ts +0 -1
- package/dist/swcPlugins/changeImportFromString.js +31 -9
- package/dist/swcPlugins/lockCoreJS.d.ts +0 -1
- package/dist/swcPlugins/lockCoreJS.js +44 -20
- package/dist/types.d.ts +0 -1
- package/dist/types.js +61 -30
- package/dist/utils/browsersList.d.ts +0 -1
- package/dist/utils/browsersList.js +31 -8
- package/dist/utils/depMatch.d.ts +0 -1
- package/dist/utils/depMatch.js +63 -39
- package/dist/utils/formatWebpackMessages.d.ts +0 -1
- package/dist/utils/formatWebpackMessages.js +93 -91
- package/dist/utils/getEsBuildTarget.d.ts +0 -1
- package/dist/utils/getEsBuildTarget.js +32 -10
- package/package.json +7 -10
- package/dist/build.d.ts.map +0 -1
- package/dist/cli.d.ts.map +0 -1
- package/dist/client/client.d.ts +0 -2
- package/dist/client/client.d.ts.map +0 -1
- package/dist/client/client.js +0 -245
- package/dist/config/_sampleFeature.d.ts.map +0 -1
- package/dist/config/assetRules.d.ts.map +0 -1
- package/dist/config/bundleAnalyzerPlugin.d.ts.map +0 -1
- package/dist/config/compressPlugin.d.ts.map +0 -1
- package/dist/config/config.d.ts.map +0 -1
- package/dist/config/copyPlugin.d.ts.map +0 -1
- package/dist/config/cssRules.d.ts.map +0 -1
- package/dist/config/definePlugin.d.ts.map +0 -1
- package/dist/config/detectDeadCode.d.ts.map +0 -1
- package/dist/config/detectDeadCodePlugin.d.ts.map +0 -1
- package/dist/config/fastRefreshPlugin.d.ts.map +0 -1
- package/dist/config/forkTSCheckerPlugin.d.ts.map +0 -1
- package/dist/config/harmonyLinkingErrorPlugin.d.ts.map +0 -1
- package/dist/config/ignorePlugin.d.ts.map +0 -1
- package/dist/config/javaScriptRules.d.ts.map +0 -1
- package/dist/config/manifestPlugin.d.ts.map +0 -1
- package/dist/config/miniCSSExtractPlugin.d.ts.map +0 -1
- package/dist/config/nodePolyfill.d.ts.map +0 -1
- package/dist/config/nodePrefixPlugin.d.ts.map +0 -1
- package/dist/config/progressPlugin.d.ts.map +0 -1
- package/dist/config/purgecssWebpackPlugin.d.ts.map +0 -1
- package/dist/config/speedMeasureWebpackPlugin.d.ts.map +0 -1
- package/dist/config/ssrPlugin.d.ts.map +0 -1
- package/dist/config/svgRules.d.ts.map +0 -1
- package/dist/constants.d.ts.map +0 -1
- package/dist/dev.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/loader/svgr.d.ts.map +0 -1
- package/dist/loader/swc.d.ts.map +0 -1
- package/dist/parcelCSS.d.ts.map +0 -1
- package/dist/plugins/ProgressPlugin.d.ts.map +0 -1
- package/dist/plugins/RuntimePublicPathPlugin.d.ts.map +0 -1
- package/dist/plugins/_SamplePlugin.d.ts.map +0 -1
- package/dist/requireHook.d.ts.map +0 -1
- package/dist/schema.d.ts.map +0 -1
- package/dist/server/server.d.ts.map +0 -1
- package/dist/server/ws.d.ts.map +0 -1
- package/dist/swcPlugins/autoCSSModules.d.ts.map +0 -1
- package/dist/swcPlugins/changeImportFromString.d.ts.map +0 -1
- package/dist/swcPlugins/lockCoreJS.d.ts.map +0 -1
- package/dist/types.d.ts.map +0 -1
- package/dist/utils/browsersList.d.ts.map +0 -1
- package/dist/utils/depMatch.d.ts.map +0 -1
- package/dist/utils/formatWebpackMessages.d.ts.map +0 -1
- package/dist/utils/getEsBuildTarget.d.ts.map +0 -1
|
@@ -1,100 +1,102 @@
|
|
|
1
|
-
|
|
2
|
-
var
|
|
3
|
-
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
4
10
|
};
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
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
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
21
|
+
|
|
22
|
+
// formatWebpackMessages.ts
|
|
23
|
+
var formatWebpackMessages_exports = {};
|
|
24
|
+
__export(formatWebpackMessages_exports, {
|
|
25
|
+
formatMessage: () => formatMessage,
|
|
26
|
+
formatWebpackMessages: () => formatWebpackMessages
|
|
27
|
+
});
|
|
28
|
+
module.exports = __toCommonJS(formatWebpackMessages_exports);
|
|
29
|
+
var import_strip_ansi = __toESM(require("@umijs/utils/compiled/strip-ansi"));
|
|
30
|
+
var friendlySyntaxErrorLabel = "Syntax error:";
|
|
9
31
|
function isLikelyASyntaxError(message) {
|
|
10
|
-
|
|
32
|
+
return (0, import_strip_ansi.default)(message).indexOf(friendlySyntaxErrorLabel) !== -1;
|
|
11
33
|
}
|
|
12
34
|
function formatMessage(message) {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
message.
|
|
22
|
-
|
|
23
|
-
lines = message['message'].split('\n');
|
|
24
|
-
}
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
// Strip webpack-added headers off errors/warnings
|
|
28
|
-
// https://github.com/webpack/webpack/blob/master/lib/ModuleError.js
|
|
29
|
-
lines = lines.filter((line) => !/Module [A-z ]+\(from/.test(line));
|
|
30
|
-
// Transform parsing error into syntax error
|
|
31
|
-
// TODO: move this to our ESLint formatter?
|
|
32
|
-
lines = lines.map((line) => {
|
|
33
|
-
const parsingError = /Line (\d+):(?:(\d+):)?\s*Parsing error: (.+)$/.exec(line);
|
|
34
|
-
if (!parsingError) {
|
|
35
|
-
return line;
|
|
36
|
-
}
|
|
37
|
-
const [, errorLine, errorColumn, errorMessage] = parsingError;
|
|
38
|
-
return `${friendlySyntaxErrorLabel} ${errorMessage} (${errorLine}:${errorColumn})`;
|
|
35
|
+
let lines = [];
|
|
36
|
+
if (typeof message === "string") {
|
|
37
|
+
lines = message.split("\n");
|
|
38
|
+
} else if ("message" in message) {
|
|
39
|
+
lines = message["message"].split("\n");
|
|
40
|
+
} else if (Array.isArray(message)) {
|
|
41
|
+
message.forEach((message2) => {
|
|
42
|
+
if ("message" in message2) {
|
|
43
|
+
lines = message2["message"].split("\n");
|
|
44
|
+
}
|
|
39
45
|
});
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
message = message.replace(/^.*export '(.+?)' \(imported as '(.+?)'\) was not found in '(.+?)'.*$/gm, `Attempted import error: '$1' is not exported from '$3' (imported as '$2').`);
|
|
47
|
-
lines = message.split('\n');
|
|
48
|
-
// Remove leading newline
|
|
49
|
-
if (lines.length > 2 && lines[1].trim() === '') {
|
|
50
|
-
lines.splice(1, 1);
|
|
51
|
-
}
|
|
52
|
-
// Clean up file name
|
|
53
|
-
lines[0] = lines[0].replace(/^(.*) \d+:\d+-\d+$/, '$1');
|
|
54
|
-
// Cleans up verbose "module not found" messages for files and packages.
|
|
55
|
-
if (lines[1] && lines[1].indexOf('Module not found: ') === 0) {
|
|
56
|
-
lines = [
|
|
57
|
-
lines[0],
|
|
58
|
-
lines[1]
|
|
59
|
-
.replace('Error: ', '')
|
|
60
|
-
.replace('Module not found: Cannot find file:', 'Cannot find file:'),
|
|
61
|
-
];
|
|
46
|
+
}
|
|
47
|
+
lines = lines.filter((line) => !/Module [A-z ]+\(from/.test(line));
|
|
48
|
+
lines = lines.map((line) => {
|
|
49
|
+
const parsingError = /Line (\d+):(?:(\d+):)?\s*Parsing error: (.+)$/.exec(line);
|
|
50
|
+
if (!parsingError) {
|
|
51
|
+
return line;
|
|
62
52
|
}
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
lines =
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
53
|
+
const [, errorLine, errorColumn, errorMessage] = parsingError;
|
|
54
|
+
return `${friendlySyntaxErrorLabel} ${errorMessage} (${errorLine}:${errorColumn})`;
|
|
55
|
+
});
|
|
56
|
+
message = lines.join("\n");
|
|
57
|
+
message = message.replace(/SyntaxError\s+\((\d+):(\d+)\)\s*(.+?)\n/g, `${friendlySyntaxErrorLabel} $3 ($1:$2)
|
|
58
|
+
`);
|
|
59
|
+
message = message.replace(/^.*export '(.+?)' was not found in '(.+?)'.*$/gm, `Attempted import error: '$1' is not exported from '$2'.`);
|
|
60
|
+
message = message.replace(/^.*export 'default' \(imported as '(.+?)'\) was not found in '(.+?)'.*$/gm, `Attempted import error: '$2' does not contain a default export (imported as '$1').`);
|
|
61
|
+
message = message.replace(/^.*export '(.+?)' \(imported as '(.+?)'\) was not found in '(.+?)'.*$/gm, `Attempted import error: '$1' is not exported from '$3' (imported as '$2').`);
|
|
62
|
+
lines = message.split("\n");
|
|
63
|
+
if (lines.length > 2 && lines[1].trim() === "") {
|
|
64
|
+
lines.splice(1, 1);
|
|
65
|
+
}
|
|
66
|
+
lines[0] = lines[0].replace(/^(.*) \d+:\d+-\d+$/, "$1");
|
|
67
|
+
if (lines[1] && lines[1].indexOf("Module not found: ") === 0) {
|
|
68
|
+
lines = [
|
|
69
|
+
lines[0],
|
|
70
|
+
lines[1].replace("Error: ", "").replace("Module not found: Cannot find file:", "Cannot find file:")
|
|
71
|
+
];
|
|
72
|
+
}
|
|
73
|
+
if (lines[1] && lines[1].match(/Cannot find module.+sass/)) {
|
|
74
|
+
lines[1] = "To import Sass files, you first need to install sass.\n";
|
|
75
|
+
lines[1] += "Run `npm install sass` or `yarn add sass` inside your workspace.";
|
|
76
|
+
}
|
|
77
|
+
message = lines.join("\n");
|
|
78
|
+
message = message.replace(/^\s*at\s((?!webpack:).)*:\d+:\d+[\s)]*(\n|$)/gm, "");
|
|
79
|
+
message = message.replace(/^\s*at\s<anonymous>(\n|$)/gm, "");
|
|
80
|
+
lines = message.split("\n");
|
|
81
|
+
lines = lines.filter((line, index, arr) => index === 0 || line.trim() !== "" || line.trim() !== arr[index - 1].trim());
|
|
82
|
+
message = lines.join("\n");
|
|
83
|
+
return message.trim();
|
|
84
84
|
}
|
|
85
|
-
exports.formatMessage = formatMessage;
|
|
86
85
|
function formatWebpackMessages(json) {
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
return result;
|
|
86
|
+
const formattedErrors = json.errors.map(function(message) {
|
|
87
|
+
return formatMessage(message);
|
|
88
|
+
});
|
|
89
|
+
const formattedWarnings = json.warnings.map(function(message) {
|
|
90
|
+
return formatMessage(message);
|
|
91
|
+
});
|
|
92
|
+
const result = { errors: formattedErrors, warnings: formattedWarnings };
|
|
93
|
+
if (result.errors.some(isLikelyASyntaxError)) {
|
|
94
|
+
result.errors = result.errors.filter(isLikelyASyntaxError);
|
|
95
|
+
}
|
|
96
|
+
return result;
|
|
99
97
|
}
|
|
100
|
-
|
|
98
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
99
|
+
0 && (module.exports = {
|
|
100
|
+
formatMessage,
|
|
101
|
+
formatWebpackMessages
|
|
102
|
+
});
|
|
@@ -1,12 +1,34 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
|
|
19
|
+
// getEsBuildTarget.ts
|
|
20
|
+
var getEsBuildTarget_exports = {};
|
|
21
|
+
__export(getEsBuildTarget_exports, {
|
|
22
|
+
getEsBuildTarget: () => getEsBuildTarget
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(getEsBuildTarget_exports);
|
|
25
|
+
var import_constants = require("../constants");
|
|
5
26
|
function getEsBuildTarget({ targets }) {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
return `${key}${targets[key] === true ? '0' : targets[key]}`;
|
|
10
|
-
});
|
|
27
|
+
return Object.keys(targets).filter((key) => import_constants.DEFAULT_ESBUILD_TARGET_KEYS.includes(key)).map((key) => {
|
|
28
|
+
return `${key}${targets[key] === true ? "0" : targets[key]}`;
|
|
29
|
+
});
|
|
11
30
|
}
|
|
12
|
-
|
|
31
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
32
|
+
0 && (module.exports = {
|
|
33
|
+
getEsBuildTarget
|
|
34
|
+
});
|
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.20220720.1",
|
|
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,10 +21,9 @@
|
|
|
21
21
|
"dist"
|
|
22
22
|
],
|
|
23
23
|
"scripts": {
|
|
24
|
-
"build": "pnpm
|
|
25
|
-
"build:client": "pnpm tsc --project ./tsconfig.client.json",
|
|
24
|
+
"build": "pnpm father build",
|
|
26
25
|
"build:deps": "umi-scripts bundleDeps",
|
|
27
|
-
"dev": "pnpm
|
|
26
|
+
"dev": "pnpm father dev",
|
|
28
27
|
"generate:webpackPackages": "zx ./scripts/generateWebpackPackages.mjs",
|
|
29
28
|
"test": "umi-scripts jest-turbo"
|
|
30
29
|
},
|
|
@@ -35,11 +34,11 @@
|
|
|
35
34
|
"@svgr/plugin-jsx": "^6.2.1",
|
|
36
35
|
"@svgr/plugin-svgo": "^6.2.0",
|
|
37
36
|
"@types/hapi__joi": "17.1.8",
|
|
38
|
-
"@umijs/babel-preset-umi": "4.0.0-canary.
|
|
39
|
-
"@umijs/bundler-utils": "4.0.0-canary.
|
|
37
|
+
"@umijs/babel-preset-umi": "4.0.0-canary.20220720.1",
|
|
38
|
+
"@umijs/bundler-utils": "4.0.0-canary.20220720.1",
|
|
40
39
|
"@umijs/case-sensitive-paths-webpack-plugin": "^1.0.1",
|
|
41
|
-
"@umijs/mfsu": "4.0.0-canary.
|
|
42
|
-
"@umijs/utils": "4.0.0-canary.
|
|
40
|
+
"@umijs/mfsu": "4.0.0-canary.20220720.1",
|
|
41
|
+
"@umijs/utils": "4.0.0-canary.20220720.1",
|
|
43
42
|
"cors": "^2.8.5",
|
|
44
43
|
"css-loader": "6.7.1",
|
|
45
44
|
"es5-imcompatible-versions": "^0.1.73",
|
|
@@ -101,7 +100,6 @@
|
|
|
101
100
|
"cssnano",
|
|
102
101
|
"compression",
|
|
103
102
|
"connect-history-api-fallback",
|
|
104
|
-
"fork-ts-checker-webpack-plugin",
|
|
105
103
|
"http-proxy-middleware",
|
|
106
104
|
"less-loader",
|
|
107
105
|
"mini-css-extract-plugin",
|
|
@@ -170,7 +168,6 @@
|
|
|
170
168
|
"cssnano",
|
|
171
169
|
"compression",
|
|
172
170
|
"connect-history-api-fallback",
|
|
173
|
-
"fork-ts-checker-webpack-plugin",
|
|
174
171
|
"less-loader",
|
|
175
172
|
"mini-css-extract-plugin",
|
|
176
173
|
"postcss-flexbugs-fixes",
|
package/dist/build.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../src/build.ts"],"names":[],"mappings":"AAEA,OAAO,OAAO,MAAM,qBAAqB,CAAC;AAC1C,OAAO,EAAa,KAAK,IAAI,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAClE,OAAO,EAAO,OAAO,EAAE,MAAM,SAAS,CAAC;AAEvC,aAAK,KAAK,GAAG;IACX,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC9B,MAAM,EAAE,OAAO,CAAC;IAChB,eAAe,CAAC,EAAE,QAAQ,CAAC;IAC3B,WAAW,CAAC,EAAE,GAAG,CAAC;IAClB,YAAY,CAAC,EAAE,QAAQ,CAAC;IACxB,mBAAmB,CAAC,EAAE,QAAQ,CAAC;IAC/B,kBAAkB,CAAC,EAAE,GAAG,EAAE,CAAC;IAC3B,kBAAkB,CAAC,EAAE,GAAG,EAAE,CAAC;IAC3B,iBAAiB,CAAC,EAAE,GAAG,EAAE,CAAC;IAC1B,iBAAiB,CAAC,EAAE,GAAG,EAAE,CAAC;IAC1B,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB,GAAG,IAAI,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;AAE/B,wBAAsB,KAAK,CAAC,IAAI,EAAE,KAAK,GAAG,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,CA8D/D"}
|
package/dist/cli.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":""}
|
package/dist/client/client.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/client/client.ts"],"names":[],"mappings":""}
|
package/dist/client/client.js
DELETED
|
@@ -1,245 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
-
};
|
|
28
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
const strip_ansi_1 = __importDefault(require("@umijs/utils/compiled/strip-ansi"));
|
|
30
|
-
// @ts-ignore
|
|
31
|
-
const ErrorOverlay = __importStar(require("react-error-overlay"));
|
|
32
|
-
const constants_1 = require("../constants");
|
|
33
|
-
const formatWebpackMessages_1 = require("../utils/formatWebpackMessages");
|
|
34
|
-
console.log('[webpack] connecting...');
|
|
35
|
-
function getHost() {
|
|
36
|
-
if (process.env.SOCKET_SERVER) {
|
|
37
|
-
return new URL(process.env.SOCKET_SERVER);
|
|
38
|
-
}
|
|
39
|
-
return location;
|
|
40
|
-
}
|
|
41
|
-
function getSocketUrl() {
|
|
42
|
-
let h = getHost();
|
|
43
|
-
const host = h.host;
|
|
44
|
-
const isHttps = h.protocol === 'https:';
|
|
45
|
-
return `${isHttps ? 'wss' : 'ws'}://${host}`;
|
|
46
|
-
}
|
|
47
|
-
function getPingUrl() {
|
|
48
|
-
const h = getHost();
|
|
49
|
-
return `${h.protocol}//${h.host}/__umi_ping`;
|
|
50
|
-
}
|
|
51
|
-
let pingTimer = null;
|
|
52
|
-
let isFirstCompilation = true;
|
|
53
|
-
let mostRecentCompilationHash = null;
|
|
54
|
-
let hasCompileErrors = false;
|
|
55
|
-
let hadRuntimeError = false;
|
|
56
|
-
const pingUrl = getPingUrl();
|
|
57
|
-
const socket = new WebSocket(getSocketUrl(), 'webpack-hmr');
|
|
58
|
-
socket.addEventListener('message', async ({ data }) => {
|
|
59
|
-
data = JSON.parse(data);
|
|
60
|
-
if (data.type === 'connected') {
|
|
61
|
-
console.log(`[webpack] connected.`);
|
|
62
|
-
// proxy(nginx, docker) hmr ws maybe caused timeout,
|
|
63
|
-
// so send ping package let ws keep alive.
|
|
64
|
-
pingTimer = setInterval(() => socket.send('ping'), 30000);
|
|
65
|
-
}
|
|
66
|
-
else {
|
|
67
|
-
handleMessage(data).catch(console.error);
|
|
68
|
-
}
|
|
69
|
-
});
|
|
70
|
-
async function waitForSuccessfulPing(ms = 1000) {
|
|
71
|
-
// eslint-disable-next-line no-constant-condition
|
|
72
|
-
while (true) {
|
|
73
|
-
try {
|
|
74
|
-
await fetch(pingUrl);
|
|
75
|
-
break;
|
|
76
|
-
}
|
|
77
|
-
catch (e) {
|
|
78
|
-
await new Promise((resolve) => setTimeout(resolve, ms));
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
socket.addEventListener('close', async () => {
|
|
83
|
-
if (pingTimer)
|
|
84
|
-
clearInterval(pingTimer);
|
|
85
|
-
console.info('[webpack] Dev server disconnected. Polling for restart...');
|
|
86
|
-
await waitForSuccessfulPing();
|
|
87
|
-
location.reload();
|
|
88
|
-
});
|
|
89
|
-
ErrorOverlay.startReportingRuntimeErrors({
|
|
90
|
-
onError: function () {
|
|
91
|
-
hadRuntimeError = true;
|
|
92
|
-
},
|
|
93
|
-
filename: '/static/js/bundle.js',
|
|
94
|
-
});
|
|
95
|
-
// @ts-ignore
|
|
96
|
-
if (module.hot && typeof module.hot.dispose === 'function') {
|
|
97
|
-
// @ts-ignore
|
|
98
|
-
module.hot.dispose(function () {
|
|
99
|
-
// TODO: why do we need this?
|
|
100
|
-
ErrorOverlay.stopReportingRuntimeErrors();
|
|
101
|
-
});
|
|
102
|
-
}
|
|
103
|
-
// There is a newer version of the code available.
|
|
104
|
-
function handleAvailableHash(hash) {
|
|
105
|
-
// Update last known compilation hash.
|
|
106
|
-
mostRecentCompilationHash = hash;
|
|
107
|
-
}
|
|
108
|
-
function handleSuccess() {
|
|
109
|
-
const isHotUpdate = !isFirstCompilation;
|
|
110
|
-
isFirstCompilation = false;
|
|
111
|
-
hasCompileErrors = false;
|
|
112
|
-
// Attempt to apply hot updates or reload.
|
|
113
|
-
if (isHotUpdate) {
|
|
114
|
-
tryApplyUpdates(function onHotUpdateSuccess() {
|
|
115
|
-
// Only dismiss it when we're sure it's a hot update.
|
|
116
|
-
// Otherwise it would flicker right before the reload.
|
|
117
|
-
tryDismissErrorOverlay();
|
|
118
|
-
});
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
function handleWarnings(warnings) {
|
|
122
|
-
const isHotUpdate = !isFirstCompilation;
|
|
123
|
-
isFirstCompilation = false;
|
|
124
|
-
hasCompileErrors = false;
|
|
125
|
-
const formatted = (0, formatWebpackMessages_1.formatWebpackMessages)({
|
|
126
|
-
warnings,
|
|
127
|
-
errors: [],
|
|
128
|
-
});
|
|
129
|
-
// print warnings
|
|
130
|
-
if (typeof console !== 'undefined' && typeof console.warn === 'function') {
|
|
131
|
-
for (let i = 0; i < formatted.warnings.length; i++) {
|
|
132
|
-
if (i === 5) {
|
|
133
|
-
console.warn('There were more warnings in other files.\n' +
|
|
134
|
-
'You can find a complete log in the terminal.');
|
|
135
|
-
break;
|
|
136
|
-
}
|
|
137
|
-
console.warn((0, strip_ansi_1.default)(formatted.warnings[i]));
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
// Attempt to apply hot updates or reload.
|
|
141
|
-
if (isHotUpdate) {
|
|
142
|
-
tryApplyUpdates(function onSuccessfulHotUpdate() {
|
|
143
|
-
// Only dismiss it when we're sure it's a hot update.
|
|
144
|
-
// Otherwise it would flicker right before the reload.
|
|
145
|
-
tryDismissErrorOverlay();
|
|
146
|
-
});
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
function handleErrors(errors) {
|
|
150
|
-
isFirstCompilation = false;
|
|
151
|
-
hasCompileErrors = true;
|
|
152
|
-
const formatted = (0, formatWebpackMessages_1.formatWebpackMessages)({
|
|
153
|
-
warnings: [],
|
|
154
|
-
errors,
|
|
155
|
-
});
|
|
156
|
-
// Only show the first error.
|
|
157
|
-
ErrorOverlay.reportBuildError(formatted.errors[0]);
|
|
158
|
-
// Also log them to the console.
|
|
159
|
-
if (typeof console !== 'undefined' && typeof console.error === 'function') {
|
|
160
|
-
for (let i = 0; i < formatted.errors.length; i++) {
|
|
161
|
-
console.error((0, strip_ansi_1.default)(formatted.errors[i]));
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
function tryDismissErrorOverlay() {
|
|
166
|
-
if (!hasCompileErrors) {
|
|
167
|
-
ErrorOverlay.dismissBuildError();
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
// Is there a newer version of this code available?
|
|
171
|
-
function isUpdateAvailable() {
|
|
172
|
-
// @ts-ignore
|
|
173
|
-
return mostRecentCompilationHash !== __webpack_hash__;
|
|
174
|
-
}
|
|
175
|
-
function canApplyUpdates() {
|
|
176
|
-
// @ts-ignore
|
|
177
|
-
return module.hot.status() === 'idle';
|
|
178
|
-
}
|
|
179
|
-
function canAcceptErrors() {
|
|
180
|
-
// NOTE: This var is injected by Webpack's DefinePlugin, and is a boolean instead of string.
|
|
181
|
-
const hasReactRefresh = process.env.FAST_REFRESH;
|
|
182
|
-
// @ts-ignore
|
|
183
|
-
const status = module.hot.status();
|
|
184
|
-
// React refresh can handle hot-reloading over errors.
|
|
185
|
-
// However, when hot-reload status is abort or fail,
|
|
186
|
-
// it indicates the current update cannot be applied safely,
|
|
187
|
-
// and thus we should bail out to a forced reload for consistency.
|
|
188
|
-
return hasReactRefresh && ['abort', 'fail'].indexOf(status) === -1;
|
|
189
|
-
}
|
|
190
|
-
function tryApplyUpdates(onHotUpdateSuccess) {
|
|
191
|
-
// @ts-ignore
|
|
192
|
-
if (!module.hot) {
|
|
193
|
-
window.location.reload();
|
|
194
|
-
return;
|
|
195
|
-
}
|
|
196
|
-
if (!isUpdateAvailable() || !canApplyUpdates()) {
|
|
197
|
-
return;
|
|
198
|
-
}
|
|
199
|
-
function handleApplyUpdates(err, updatedModules) {
|
|
200
|
-
const haveErrors = err || hadRuntimeError;
|
|
201
|
-
// When there is no error but updatedModules is unavailable,
|
|
202
|
-
// it indicates a critical failure in hot-reloading,
|
|
203
|
-
// e.g. server is not ready to serve new bundle,
|
|
204
|
-
// and hence we need to do a forced reload.
|
|
205
|
-
const needsForcedReload = !err && !updatedModules;
|
|
206
|
-
if ((haveErrors && !canAcceptErrors()) || needsForcedReload) {
|
|
207
|
-
window.location.reload();
|
|
208
|
-
}
|
|
209
|
-
if (onHotUpdateSuccess)
|
|
210
|
-
onHotUpdateSuccess();
|
|
211
|
-
// While we were updating, there was a new update! Do it again.
|
|
212
|
-
if (isUpdateAvailable()) {
|
|
213
|
-
tryApplyUpdates();
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
// @ts-ignore
|
|
217
|
-
module.hot
|
|
218
|
-
.check(/* autoApply */ true)
|
|
219
|
-
.then((updatedModules) => {
|
|
220
|
-
handleApplyUpdates(null, updatedModules);
|
|
221
|
-
})
|
|
222
|
-
.catch((err) => {
|
|
223
|
-
handleApplyUpdates(err, null);
|
|
224
|
-
});
|
|
225
|
-
}
|
|
226
|
-
async function handleMessage(payload) {
|
|
227
|
-
// console.log('[payload]', payload);
|
|
228
|
-
switch (payload.type) {
|
|
229
|
-
case constants_1.MESSAGE_TYPE.hash:
|
|
230
|
-
handleAvailableHash(payload.data);
|
|
231
|
-
break;
|
|
232
|
-
case constants_1.MESSAGE_TYPE.stillOk:
|
|
233
|
-
case constants_1.MESSAGE_TYPE.ok:
|
|
234
|
-
handleSuccess();
|
|
235
|
-
break;
|
|
236
|
-
case constants_1.MESSAGE_TYPE.errors:
|
|
237
|
-
handleErrors(payload.data);
|
|
238
|
-
break;
|
|
239
|
-
case constants_1.MESSAGE_TYPE.warnings:
|
|
240
|
-
handleWarnings(payload.data);
|
|
241
|
-
break;
|
|
242
|
-
default:
|
|
243
|
-
// Do nothing
|
|
244
|
-
}
|
|
245
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"_sampleFeature.d.ts","sourceRoot":"","sources":["../../src/config/_sampleFeature.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,iDAAiD,CAAC;AACrE,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAExC,UAAU,KAAK;IACb,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,OAAO,CAAC;IACpB,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,GAAG,CAAC;CACV;AAED,wBAAsB,gBAAgB,CAAC,IAAI,EAAE,KAAK,iBAMjD"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"assetRules.d.ts","sourceRoot":"","sources":["../../src/config/assetRules.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,iDAAiD,CAAC;AACrE,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAExC,UAAU,KAAK;IACb,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,OAAO,CAAC;IACpB,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,GAAG,CAAC;IACT,gBAAgB,EAAE,MAAM,CAAC;CAC1B;AAED,wBAAsB,aAAa,CAAC,IAAI,EAAE,KAAK,iBAsC9C"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"bundleAnalyzerPlugin.d.ts","sourceRoot":"","sources":["../../src/config/bundleAnalyzerPlugin.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,iDAAiD,CAAC;AAGrE,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAExC,UAAU,KAAK;IACb,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,OAAO,CAAC;IACpB,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,GAAG,CAAC;CACV;AAED,wBAAsB,uBAAuB,CAAC,IAAI,EAAE,KAAK,iBAYxD"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"compressPlugin.d.ts","sourceRoot":"","sources":["../../src/config/compressPlugin.ts"],"names":[],"mappings":"AAMA,OAAO,MAAM,MAAM,gCAAgC,CAAC;AACpD,OAAO,EAAe,GAAG,EAAE,OAAO,EAAc,MAAM,UAAU,CAAC;AAGjE,UAAU,KAAK;IACb,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,OAAO,CAAC;IACpB,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,GAAG,CAAC;CACV;AAED,wBAAsB,iBAAiB,CAAC,IAAI,EAAE,KAAK,iBAwFlD"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/config/config.ts"],"names":[],"mappings":"AAEA,OAAgB,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAQhE,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAsBxC,MAAM,WAAW,KAAK;IACpB,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,GAAG,EAAE,GAAG,CAAC;IACT,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC9B,iBAAiB,CAAC,EAAE,GAAG,EAAE,CAAC;IAC1B,iBAAiB,CAAC,EAAE,GAAG,EAAE,CAAC;IAC1B,kBAAkB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC9B,yBAAyB,CAAC,EAAE,GAAG,EAAE,CAAC;IAClC,WAAW,CAAC,EAAE,GAAG,CAAC;IAClB,YAAY,CAAC,EAAE,QAAQ,CAAC;IACxB,mBAAmB,CAAC,EAAE,QAAQ,CAAC;IAC/B,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,UAAU,EAAE,OAAO,CAAC;IACpB,OAAO,CAAC,EAAE,GAAG,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE;QACN,kBAAkB,CAAC,EAAE,MAAM,CAAC;QAC5B,iBAAiB,CAAC,EAAE,MAAM,EAAE,CAAC;QAC7B,cAAc,CAAC,EAAE,MAAM,CAAC;KACzB,CAAC;CACH;AAED,wBAAsB,SAAS,CAAC,IAAI,EAAE,KAAK,GAAG,OAAO,CAAC,aAAa,CAAC,CAsOnE"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"copyPlugin.d.ts","sourceRoot":"","sources":["../../src/config/copyPlugin.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,iDAAiD,CAAC;AAGrE,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAExC,UAAU,KAAK;IACb,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,OAAO,CAAC;IACpB,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,GAAG,CAAC;CACV;AAED,wBAAsB,aAAa,CAAC,IAAI,EAAE,KAAK,iBAkC9C"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cssRules.d.ts","sourceRoot":"","sources":["../../src/config/cssRules.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,iDAAiD,CAAC;AAGrE,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAExC,UAAU,KAAK;IACb,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,OAAO,CAAC;IACpB,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,GAAG,CAAC;IACT,QAAQ,EAAE,GAAG,CAAC;CACf;AAED,wBAAsB,WAAW,CAAC,IAAI,EAAE,KAAK,iBAsJ5C"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"definePlugin.d.ts","sourceRoot":"","sources":["../../src/config/definePlugin.ts"],"names":[],"mappings":"AACA,OAAO,MAAM,MAAM,iDAAiD,CAAC;AACrE,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAExC,UAAU,KAAK;IACb,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,OAAO,CAAC;IACpB,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,GAAG,CAAC;CACV;AAKD,wBAAgB,aAAa,CAAC,IAAI,EAAE;IAAE,MAAM,EAAE,GAAG,CAAC;IAAC,UAAU,CAAC,EAAE,MAAM,CAAA;CAAE;;EA2BvE;AAED,wBAAsB,eAAe,CAAC,IAAI,EAAE,KAAK,iBAQhD"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"detectDeadCode.d.ts","sourceRoot":"","sources":["../../src/config/detectDeadCode.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,WAAW,EAGZ,MAAM,yCAAyC,CAAC;AAGjD,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE1C,MAAM,WAAW,OAAQ,SAAQ,cAAc;IAC7C,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,UAAU,EAAE,OAAO,CAAC;IACpB,iBAAiB,EAAE,OAAO,CAAC;IAC3B,kBAAkB,EAAE,OAAO,CAAC;CAC7B;AACD,eAAO,MAAM,eAAe,EAAE,MAAM,EAKnC,CAAC;AAKF,QAAA,MAAM,cAAc,gBAAiB,WAAW,WAAW,OAAO,SAsBjE,CAAC;AA4JF,eAAe,cAAc,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"detectDeadCodePlugin.d.ts","sourceRoot":"","sources":["../../src/config/detectDeadCodePlugin.ts"],"names":[],"mappings":"AAEA,OAAO,MAAM,MAAM,iDAAiD,CAAC;AACrE,OAAO,EAAkB,GAAG,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAGxD,UAAU,KAAK;IACb,UAAU,EAAE,OAAO,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,GAAG,EAAE,GAAG,CAAC;CACV;AA+CD,wBAAsB,uBAAuB,CAAC,IAAI,EAAE,KAAK,iBASxD"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fastRefreshPlugin.d.ts","sourceRoot":"","sources":["../../src/config/fastRefreshPlugin.ts"],"names":[],"mappings":"AAEA,OAAO,MAAM,MAAM,iDAAiD,CAAC;AAErE,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAExC,UAAU,KAAK;IACb,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,OAAO,CAAC;IACpB,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,GAAG,CAAC;IACT,QAAQ,EAAE,GAAG,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,wBAAsB,oBAAoB,CAAC,IAAI,EAAE,KAAK,iBAYrD"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"forkTSCheckerPlugin.d.ts","sourceRoot":"","sources":["../../src/config/forkTSCheckerPlugin.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,iDAAiD,CAAC;AAErE,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAExC,UAAU,KAAK;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,OAAO,CAAC;IACpB,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,GAAG,CAAC;CACV;AAED,wBAAsB,sBAAsB,CAAC,IAAI,EAAE,KAAK,iBAYvD"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"harmonyLinkingErrorPlugin.d.ts","sourceRoot":"","sources":["../../src/config/harmonyLinkingErrorPlugin.ts"],"names":[],"mappings":"AAIA,OAAO,MAAM,MAAM,iDAAiD,CAAC;AAErE,UAAU,KAAK;IACb,MAAM,EAAE,MAAM,CAAC;CAChB;AA+BD,wBAAsB,4BAA4B,CAAC,IAAI,EAAE,KAAK,iBAG7D"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ignorePlugin.d.ts","sourceRoot":"","sources":["../../src/config/ignorePlugin.ts"],"names":[],"mappings":"AACA,OAAO,MAAM,MAAM,iDAAiD,CAAC;AACrE,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAExC,UAAU,KAAK;IACb,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,OAAO,CAAC;IACpB,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,GAAG,CAAC;CACV;AAED,wBAAsB,eAAe,CAAC,IAAI,EAAE,KAAK,iBAUhD"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"javaScriptRules.d.ts","sourceRoot":"","sources":["../../src/config/javaScriptRules.ts"],"names":[],"mappings":"AAKA,OAAO,MAAM,MAAM,gCAAgC,CAAC;AAEpD,OAAO,EAAE,GAAG,EAAE,OAAO,EAAc,MAAM,UAAU,CAAC;AAGpD,UAAU,KAAK;IACb,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,OAAO,CAAC;IACpB,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,GAAG,CAAC;IACT,iBAAiB,EAAE,GAAG,EAAE,CAAC;IACzB,iBAAiB,EAAE,GAAG,EAAE,CAAC;IACzB,kBAAkB,EAAE,MAAM,EAAE,CAAC;IAC7B,yBAAyB,EAAE,GAAG,EAAE,CAAC;IACjC,WAAW,EAAE,GAAG,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,wBAAsB,kBAAkB,CAAC,IAAI,EAAE,KAAK,iBAuKnD"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"manifestPlugin.d.ts","sourceRoot":"","sources":["../../src/config/manifestPlugin.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,iDAAiD,CAAC;AAGrE,OAAO,KAAK,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAE7C,UAAU,KAAK;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,OAAO,CAAC;IACpB,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,GAAG,CAAC;CACV;AAED,wBAAsB,iBAAiB,CAAC,IAAI,EAAE,KAAK,iBAUlD"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"miniCSSExtractPlugin.d.ts","sourceRoot":"","sources":["../../src/config/miniCSSExtractPlugin.ts"],"names":[],"mappings":"AAEA,OAAO,MAAM,MAAM,iDAAiD,CAAC;AACrE,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAExC,UAAU,KAAK;IACb,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,OAAO,CAAC;IACpB,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,GAAG,CAAC;IACT,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,wBAAsB,uBAAuB,CAAC,IAAI,EAAE,KAAK,iBAexD"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"nodePolyfill.d.ts","sourceRoot":"","sources":["../../src/config/nodePolyfill.ts"],"names":[],"mappings":"AACA,OAAO,MAAM,MAAM,iDAAiD,CAAC;AACrE,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAExC,UAAU,KAAK;IACb,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,OAAO,CAAC;IACpB,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,GAAG,CAAC;CACV;AAED,wBAAsB,eAAe,CAAC,IAAI,EAAE,KAAK,iBAuBhD"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"nodePrefixPlugin.d.ts","sourceRoot":"","sources":["../../src/config/nodePrefixPlugin.ts"],"names":[],"mappings":"AACA,OAAO,MAAM,MAAM,iDAAiD,CAAC;AACrE,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAExC,UAAU,KAAK;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,OAAO,CAAC;IACpB,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,GAAG,CAAC;CACV;AAED,wBAAsB,mBAAmB,CAAC,IAAI,EAAE,KAAK,iBAQpD"}
|