@umijs/mfsu 4.0.8 → 4.0.11

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 (71) hide show
  1. package/compiled/is-absolute-url/LICENSE +9 -0
  2. package/compiled/is-absolute-url/index.d.ts +22 -0
  3. package/compiled/is-absolute-url/index.js +1 -0
  4. package/compiled/is-absolute-url/package.json +1 -0
  5. package/dist/babelPlugins/awaitImport/MFImport.d.ts +0 -0
  6. package/dist/babelPlugins/awaitImport/MFImport.js +1 -1
  7. package/dist/babelPlugins/awaitImport/awaitImport.d.ts +0 -0
  8. package/dist/babelPlugins/awaitImport/awaitImport.js +1 -1
  9. package/dist/babelPlugins/awaitImport/checkMatch.d.ts +0 -0
  10. package/dist/babelPlugins/awaitImport/checkMatch.js +129 -132
  11. package/dist/babelPlugins/awaitImport/getAliasedPath.d.ts +0 -0
  12. package/dist/babelPlugins/awaitImport/getAliasedPath.js +1 -1
  13. package/dist/babelPlugins/awaitImport/getRealPath.d.ts +0 -0
  14. package/dist/babelPlugins/awaitImport/getRealPath.js +1 -1
  15. package/dist/babelPlugins/awaitImport/isExternals.d.ts +0 -0
  16. package/dist/babelPlugins/awaitImport/isExternals.js +1 -1
  17. package/dist/babelPlugins/awaitImport/parseSpecifiers.d.ts +0 -0
  18. package/dist/babelPlugins/awaitImport/parseSpecifiers.js +1 -1
  19. package/dist/constants.d.ts +0 -0
  20. package/dist/constants.js +1 -1
  21. package/dist/dep/dep.d.ts +0 -0
  22. package/dist/dep/dep.js +112 -83
  23. package/dist/dep/getCJSExports.d.ts +0 -0
  24. package/dist/dep/getCJSExports.js +1 -1
  25. package/dist/dep/getExposeFromContent.d.ts +0 -0
  26. package/dist/dep/getExposeFromContent.js +1 -1
  27. package/dist/dep/getModuleExports.d.ts +0 -0
  28. package/dist/dep/getModuleExports.js +1 -1
  29. package/dist/depBuilder/depBuilder.d.ts +0 -0
  30. package/dist/depBuilder/depBuilder.js +191 -158
  31. package/dist/depBuilder/getESBuildEntry.d.ts +0 -0
  32. package/dist/depBuilder/getESBuildEntry.js +1 -1
  33. package/dist/depInfo.d.ts +0 -0
  34. package/dist/depInfo.js +75 -53
  35. package/dist/esbuildHandlers/autoCssModules.d.ts +0 -0
  36. package/dist/esbuildHandlers/autoCssModules.js +43 -22
  37. package/dist/esbuildHandlers/awaitImport/index.d.ts +0 -0
  38. package/dist/esbuildHandlers/awaitImport/index.js +1 -1
  39. package/dist/index.d.ts +0 -0
  40. package/dist/index.js +1 -1
  41. package/dist/loader/esbuild.d.ts +0 -0
  42. package/dist/loader/esbuild.js +1 -1
  43. package/dist/mfsu/mfsu.d.ts +4 -0
  44. package/dist/mfsu/mfsu.js +236 -257
  45. package/dist/mfsu/strategyCompileTime.d.ts +0 -0
  46. package/dist/mfsu/strategyCompileTime.js +131 -99
  47. package/dist/mfsu/strategyStaticAnalyze.d.ts +0 -0
  48. package/dist/mfsu/strategyStaticAnalyze.js +151 -115
  49. package/dist/moduleGraph.d.ts +0 -0
  50. package/dist/moduleGraph.js +227 -186
  51. package/dist/staticDepInfo/importParser.d.ts +0 -0
  52. package/dist/staticDepInfo/importParser.js +1 -1
  53. package/dist/staticDepInfo/simulations/babel-plugin-import.d.ts +0 -0
  54. package/dist/staticDepInfo/simulations/babel-plugin-import.js +99 -91
  55. package/dist/staticDepInfo/staticDepInfo.d.ts +0 -0
  56. package/dist/staticDepInfo/staticDepInfo.js +239 -197
  57. package/dist/types.d.ts +0 -0
  58. package/dist/types.js +1 -1
  59. package/dist/utils/makeArray.d.ts +0 -0
  60. package/dist/utils/makeArray.js +1 -1
  61. package/dist/utils/trimFileContent.d.ts +0 -0
  62. package/dist/utils/trimFileContent.js +1 -1
  63. package/dist/webpackPlugins/buildDepPlugin.d.ts +0 -0
  64. package/dist/webpackPlugins/buildDepPlugin.js +1 -1
  65. package/dist/webpackPlugins/depChunkIdPrefixPlugin.d.ts +0 -0
  66. package/dist/webpackPlugins/depChunkIdPrefixPlugin.js +1 -1
  67. package/dist/webpackPlugins/stripSourceMapUrlPlugin.d.ts +0 -0
  68. package/dist/webpackPlugins/stripSourceMapUrlPlugin.js +1 -1
  69. package/dist/webpackPlugins/writeCachePlugin.d.ts +0 -0
  70. package/dist/webpackPlugins/writeCachePlugin.js +1 -1
  71. package/package.json +8 -6
@@ -1,206 +1,248 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.StaticDepInfo = void 0;
7
- const utils_1 = require("@umijs/utils");
8
- const fs_1 = require("fs");
9
- // @ts-ignore
10
- const why_1 = __importDefault(require("is-equal/why"));
11
- const path_1 = require("path");
12
- const checkMatch_1 = require("../babelPlugins/awaitImport/checkMatch");
13
- const dep_1 = require("../dep/dep");
14
- const babel_plugin_import_1 = __importDefault(require("./simulations/babel-plugin-import"));
15
- class StaticDepInfo {
16
- constructor(opts) {
17
- this.currentDep = {};
18
- this.builtWithDep = {};
19
- this.produced = [];
20
- this.mfsu = opts.mfsu;
21
- this.include = this.mfsu.opts.include || [];
22
- this.opts = opts;
23
- this.cacheFilePath = (0, path_1.join)(this.opts.mfsu.opts.tmpBase, 'MFSU_CACHE_v4.json');
24
- this.cwd = this.mfsu.opts.cwd;
25
- opts.srcCodeCache.register((info) => {
26
- this.produced.push({ changes: info.events });
27
- this.currentDep = this._getDependencies(info.code, info.imports);
28
- });
29
- this.runtimeSimulations = [
30
- {
31
- packageName: 'antd',
32
- handleImports: (0, babel_plugin_import_1.default)({
33
- libraryName: 'antd',
34
- style: true,
35
- libraryDirectory: 'es',
36
- }),
37
- },
38
- {
39
- packageName: '@alipay/bigfish/antd',
40
- handleImports: (0, babel_plugin_import_1.default)({
41
- libraryName: '@alipay/bigfish/antd',
42
- style: true,
43
- libraryDirectory: 'es',
44
- }),
45
- },
46
- ];
47
- }
48
- getProducedEvent() {
49
- return this.produced;
50
- }
51
- consumeAllProducedEvents() {
52
- this.produced = [];
53
- }
54
- shouldBuild() {
55
- if (utils_1.lodash.isEqual(this.builtWithDep, this.currentDep)) {
56
- return false;
57
- }
58
- else {
59
- if (process.env.DEBUG_UMI) {
60
- const reason = (0, why_1.default)(this.builtWithDep, this.currentDep);
61
- utils_1.logger.info('[MFSU][eager]: isEqual(oldDep,newDep) === false, because ', reason);
62
- }
63
- return 'dependencies changed';
64
- }
65
- }
66
- getDepModules() {
67
- const map = this.getDependencies();
68
- const staticDeps = {};
69
- const keys = Object.keys(map);
70
- for (const k of keys) {
71
- staticDeps[k] = {
72
- file: k,
73
- version: map[k].version,
74
- };
75
- }
76
- return staticDeps;
77
- }
78
- snapshot() {
79
- this.builtWithDep = this.currentDep;
80
- }
81
- loadCache() {
82
- if ((0, fs_1.existsSync)(this.cacheFilePath)) {
83
- this.builtWithDep = JSON.parse((0, fs_1.readFileSync)(this.cacheFilePath, 'utf-8'));
84
- utils_1.logger.info('[MFSU][eager] restored cache');
85
- }
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __defProps = Object.defineProperties;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
6
+ var __getOwnPropNames = Object.getOwnPropertyNames;
7
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
8
+ var __getProtoOf = Object.getPrototypeOf;
9
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
10
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
11
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
12
+ var __spreadValues = (a, b) => {
13
+ for (var prop in b || (b = {}))
14
+ if (__hasOwnProp.call(b, prop))
15
+ __defNormalProp(a, prop, b[prop]);
16
+ if (__getOwnPropSymbols)
17
+ for (var prop of __getOwnPropSymbols(b)) {
18
+ if (__propIsEnum.call(b, prop))
19
+ __defNormalProp(a, prop, b[prop]);
86
20
  }
87
- writeCache() {
88
- utils_1.fsExtra.mkdirpSync((0, path_1.dirname)(this.cacheFilePath));
89
- const newContent = JSON.stringify(this.builtWithDep, null, 2);
90
- if ((0, fs_1.existsSync)(this.cacheFilePath) &&
91
- (0, fs_1.readFileSync)(this.cacheFilePath, 'utf-8') === newContent) {
92
- return;
93
- }
94
- utils_1.logger.info('[MFSU][eager] write cache');
95
- (0, fs_1.writeFileSync)(this.cacheFilePath, newContent, 'utf-8');
96
- }
97
- getCacheFilePath() {
98
- return this.cacheFilePath;
21
+ return a;
22
+ };
23
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
24
+ var __export = (target, all) => {
25
+ for (var name in all)
26
+ __defProp(target, name, { get: all[name], enumerable: true });
27
+ };
28
+ var __copyProps = (to, from, except, desc) => {
29
+ if (from && typeof from === "object" || typeof from === "function") {
30
+ for (let key of __getOwnPropNames(from))
31
+ if (!__hasOwnProp.call(to, key) && key !== except)
32
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
33
+ }
34
+ return to;
35
+ };
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
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
38
+
39
+ // src/staticDepInfo/staticDepInfo.ts
40
+ var staticDepInfo_exports = {};
41
+ __export(staticDepInfo_exports, {
42
+ StaticDepInfo: () => StaticDepInfo
43
+ });
44
+ module.exports = __toCommonJS(staticDepInfo_exports);
45
+ var import_utils = require("@umijs/utils");
46
+ var import_fs = require("fs");
47
+ var import_why = __toESM(require("is-equal/why"));
48
+ var import_path = require("path");
49
+ var import_checkMatch = require("../babelPlugins/awaitImport/checkMatch");
50
+ var import_dep = require("../dep/dep");
51
+ var import_babel_plugin_import = __toESM(require("./simulations/babel-plugin-import"));
52
+ var StaticDepInfo = class {
53
+ constructor(opts) {
54
+ this.currentDep = {};
55
+ this.builtWithDep = {};
56
+ this.produced = [];
57
+ this.mfsu = opts.mfsu;
58
+ this.include = this.mfsu.opts.include || [];
59
+ this.opts = opts;
60
+ this.cacheFilePath = (0, import_path.join)(this.opts.mfsu.opts.tmpBase, "MFSU_CACHE_v4.json");
61
+ this.cwd = this.mfsu.opts.cwd;
62
+ opts.srcCodeCache.register((info) => {
63
+ this.produced.push({ changes: info.events });
64
+ this.currentDep = this._getDependencies(info.code, info.imports);
65
+ });
66
+ this.runtimeSimulations = [
67
+ {
68
+ packageName: "antd",
69
+ handleImports: (0, import_babel_plugin_import.default)({
70
+ libraryName: "antd",
71
+ style: true,
72
+ libraryDirectory: "es"
73
+ })
74
+ },
75
+ {
76
+ packageName: "@alipay/bigfish/antd",
77
+ handleImports: (0, import_babel_plugin_import.default)({
78
+ libraryName: "@alipay/bigfish/antd",
79
+ style: true,
80
+ libraryDirectory: "es"
81
+ })
82
+ }
83
+ ];
84
+ }
85
+ getProducedEvent() {
86
+ return this.produced;
87
+ }
88
+ consumeAllProducedEvents() {
89
+ this.produced = [];
90
+ }
91
+ shouldBuild() {
92
+ if (import_utils.lodash.isEqual(this.builtWithDep, this.currentDep)) {
93
+ return false;
94
+ } else {
95
+ if (process.env.DEBUG_UMI) {
96
+ const reason = (0, import_why.default)(this.builtWithDep, this.currentDep);
97
+ import_utils.logger.info("[MFSU][eager]: isEqual(oldDep,newDep) === false, because ", reason);
98
+ }
99
+ return "dependencies changed";
99
100
  }
100
- getDependencies() {
101
- return this.currentDep;
101
+ }
102
+ getDepModules() {
103
+ const map = this.getDependencies();
104
+ const staticDeps = {};
105
+ const keys = Object.keys(map);
106
+ for (const k of keys) {
107
+ staticDeps[k] = {
108
+ file: k,
109
+ version: map[k].version
110
+ };
102
111
  }
103
- init() {
104
- const merged = this.opts.srcCodeCache.getMergedCode();
105
- this.currentDep = this._getDependencies(merged.code, merged.imports);
112
+ return staticDeps;
113
+ }
114
+ snapshot() {
115
+ this.builtWithDep = this.currentDep;
116
+ }
117
+ loadCache() {
118
+ if ((0, import_fs.existsSync)(this.cacheFilePath)) {
119
+ this.builtWithDep = JSON.parse((0, import_fs.readFileSync)(this.cacheFilePath, "utf-8"));
120
+ import_utils.logger.info("[MFSU][eager] restored cache");
106
121
  }
107
- _getDependencies(bigCodeString, imports) {
108
- const start = Date.now();
109
- const cwd = this.mfsu.opts.cwd;
110
- const opts = {
111
- exportAllMembers: this.mfsu.opts.exportAllMembers,
112
- unMatchLibs: this.mfsu.opts.unMatchLibs,
113
- remoteName: this.mfsu.opts.mfName,
114
- alias: this.mfsu.alias,
115
- externals: this.mfsu.externals,
116
- };
117
- const matched = {};
118
- const unMatched = new Set();
119
- const pkgNames = this.runtimeSimulations.map(({ packageName }) => packageName);
120
- const groupedMockImports = {};
121
- for (const imp of imports) {
122
- if (pkgNames.indexOf(imp.n) >= 0) {
123
- const name = imp.n;
124
- if (groupedMockImports[name]) {
125
- groupedMockImports[name].push(imp);
126
- }
127
- else {
128
- groupedMockImports[name] = [imp];
129
- }
130
- continue;
131
- }
132
- if (unMatched.has(imp.n)) {
133
- continue;
134
- }
135
- if (matched[imp.n]) {
136
- continue;
137
- }
138
- const match = (0, checkMatch_1.checkMatch)({
139
- value: imp.n,
140
- depth: 1,
141
- filename: '_.js',
142
- opts,
143
- });
144
- if (match.isMatch) {
145
- matched[match.value] = {
146
- ...match,
147
- version: dep_1.Dep.getDepVersion({
148
- dep: match.value,
149
- cwd,
150
- }),
151
- };
152
- }
153
- else {
154
- unMatched.add(imp.n);
155
- }
156
- }
157
- this.simulateRuntimeTransform(matched, groupedMockImports, bigCodeString);
158
- this.appendIncludeList(matched, opts);
159
- utils_1.logger.debug('[MFSU][eager] _getDependencies costs', Date.now() - start);
160
- return matched;
122
+ }
123
+ writeCache() {
124
+ import_utils.fsExtra.mkdirpSync((0, import_path.dirname)(this.cacheFilePath));
125
+ const newContent = JSON.stringify(this.builtWithDep, null, 2);
126
+ if ((0, import_fs.existsSync)(this.cacheFilePath) && (0, import_fs.readFileSync)(this.cacheFilePath, "utf-8") === newContent) {
127
+ return;
161
128
  }
162
- simulateRuntimeTransform(matched, groupedImports, rawCode) {
163
- for (const mock of this.runtimeSimulations) {
164
- const name = mock.packageName;
165
- const pathToVersion = (dep) => {
166
- return dep_1.Dep.getDepVersion({
167
- dep,
168
- cwd: this.cwd,
169
- });
170
- };
171
- const ms = mock.handleImports({
172
- imports: groupedImports[name],
173
- rawCode,
174
- alias: this.mfsu.alias,
175
- mfName: this.mfsu.opts.mfName,
176
- pathToVersion,
177
- });
178
- for (const m of ms) {
179
- matched[m.value] = m;
180
- }
129
+ import_utils.logger.info("[MFSU][eager] write cache");
130
+ (0, import_fs.writeFileSync)(this.cacheFilePath, newContent, "utf-8");
131
+ }
132
+ getCacheFilePath() {
133
+ return this.cacheFilePath;
134
+ }
135
+ getDependencies() {
136
+ return this.currentDep;
137
+ }
138
+ init() {
139
+ const merged = this.opts.srcCodeCache.getMergedCode();
140
+ this.currentDep = this._getDependencies(merged.code, merged.imports);
141
+ }
142
+ _getDependencies(bigCodeString, imports) {
143
+ const start = Date.now();
144
+ const cwd = this.mfsu.opts.cwd;
145
+ const mfsuOpts = this.mfsu.opts;
146
+ const userUnMatches = mfsuOpts.unMatchLibs || [];
147
+ const sharedUnMatches = Object.keys(mfsuOpts.shared || {});
148
+ const remoteAliasUnMatches = (mfsuOpts.remoteAliases || []).map((str) => new RegExp(`^${str}`));
149
+ const unMatches = [
150
+ ...userUnMatches,
151
+ ...sharedUnMatches,
152
+ ...remoteAliasUnMatches
153
+ ];
154
+ const opts = {
155
+ exportAllMembers: this.mfsu.opts.exportAllMembers,
156
+ unMatchLibs: unMatches,
157
+ remoteName: this.mfsu.opts.mfName,
158
+ alias: this.mfsu.alias,
159
+ externals: this.mfsu.externals
160
+ };
161
+ const matched = {};
162
+ const unMatched = /* @__PURE__ */ new Set();
163
+ const pkgNames = this.runtimeSimulations.map(({ packageName }) => packageName);
164
+ const groupedMockImports = {};
165
+ for (const imp of imports) {
166
+ if (pkgNames.indexOf(imp.n) >= 0) {
167
+ const name = imp.n;
168
+ if (groupedMockImports[name]) {
169
+ groupedMockImports[name].push(imp);
170
+ } else {
171
+ groupedMockImports[name] = [imp];
181
172
  }
173
+ continue;
174
+ }
175
+ if (unMatched.has(imp.n)) {
176
+ continue;
177
+ }
178
+ if (matched[imp.n]) {
179
+ continue;
180
+ }
181
+ const match = (0, import_checkMatch.checkMatch)({
182
+ value: imp.n,
183
+ depth: 1,
184
+ filename: "_.js",
185
+ opts
186
+ });
187
+ if (match.isMatch) {
188
+ matched[match.value] = __spreadProps(__spreadValues({}, match), {
189
+ version: import_dep.Dep.getDepVersion({
190
+ dep: match.value,
191
+ cwd
192
+ })
193
+ });
194
+ } else {
195
+ unMatched.add(imp.n);
196
+ }
182
197
  }
183
- appendIncludeList(matched, opts) {
184
- for (const p of this.include) {
185
- const match = (0, checkMatch_1.checkMatch)({
186
- value: p,
187
- depth: 1,
188
- filename: '_.js',
189
- opts,
190
- });
191
- if (match.isMatch) {
192
- matched[match.value] = {
193
- ...match,
194
- version: dep_1.Dep.getDepVersion({
195
- dep: match.value,
196
- cwd: this.cwd,
197
- }),
198
- };
199
- }
200
- }
198
+ this.simulateRuntimeTransform(matched, groupedMockImports, bigCodeString);
199
+ this.appendIncludeList(matched, opts);
200
+ import_utils.logger.debug("[MFSU][eager] _getDependencies costs", Date.now() - start);
201
+ return matched;
202
+ }
203
+ simulateRuntimeTransform(matched, groupedImports, rawCode) {
204
+ for (const mock of this.runtimeSimulations) {
205
+ const name = mock.packageName;
206
+ const pathToVersion = (dep) => {
207
+ return import_dep.Dep.getDepVersion({
208
+ dep,
209
+ cwd: this.cwd
210
+ });
211
+ };
212
+ const ms = mock.handleImports({
213
+ imports: groupedImports[name],
214
+ rawCode,
215
+ alias: this.mfsu.alias,
216
+ mfName: this.mfsu.opts.mfName,
217
+ pathToVersion
218
+ });
219
+ for (const m of ms) {
220
+ matched[m.value] = m;
221
+ }
201
222
  }
202
- async allRuntimeHelpers() {
203
- // todo mfsu4
223
+ }
224
+ appendIncludeList(matched, opts) {
225
+ for (const p of this.include) {
226
+ const match = (0, import_checkMatch.checkMatch)({
227
+ value: p,
228
+ depth: 1,
229
+ filename: "_.js",
230
+ opts
231
+ });
232
+ if (match.isMatch) {
233
+ matched[match.value] = __spreadProps(__spreadValues({}, match), {
234
+ version: import_dep.Dep.getDepVersion({
235
+ dep: match.value,
236
+ cwd: this.cwd
237
+ })
238
+ });
239
+ }
204
240
  }
205
- }
206
- exports.StaticDepInfo = StaticDepInfo;
241
+ }
242
+ async allRuntimeHelpers() {
243
+ }
244
+ };
245
+ // Annotate the CommonJS export names for ESM import in node:
246
+ 0 && (module.exports = {
247
+ StaticDepInfo
248
+ });
package/dist/types.d.ts CHANGED
File without changes
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
  Mode: () => Mode
File without changes
@@ -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
- // makeArray.ts
19
+ // src/utils/makeArray.ts
20
20
  var makeArray_exports = {};
21
21
  __export(makeArray_exports, {
22
22
  makeArray: () => makeArray
File without changes
@@ -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
- // trimFileContent.ts
19
+ // src/utils/trimFileContent.ts
20
20
  var trimFileContent_exports = {};
21
21
  __export(trimFileContent_exports, {
22
22
  trimFileContent: () => trimFileContent
File without changes
@@ -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
- // buildDepPlugin.ts
19
+ // src/webpackPlugins/buildDepPlugin.ts
20
20
  var buildDepPlugin_exports = {};
21
21
  __export(buildDepPlugin_exports, {
22
22
  BuildDepPlugin: () => BuildDepPlugin
File without changes
@@ -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
- // depChunkIdPrefixPlugin.ts
19
+ // src/webpackPlugins/depChunkIdPrefixPlugin.ts
20
20
  var depChunkIdPrefixPlugin_exports = {};
21
21
  __export(depChunkIdPrefixPlugin_exports, {
22
22
  DepChunkIdPrefixPlugin: () => DepChunkIdPrefixPlugin
File without changes
@@ -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
- // stripSourceMapUrlPlugin.ts
19
+ // src/webpackPlugins/stripSourceMapUrlPlugin.ts
20
20
  var stripSourceMapUrlPlugin_exports = {};
21
21
  __export(stripSourceMapUrlPlugin_exports, {
22
22
  StripSourceMapUrlPlugin: () => StripSourceMapUrlPlugin
File without changes
@@ -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
- // writeCachePlugin.ts
19
+ // src/webpackPlugins/writeCachePlugin.ts
20
20
  var writeCachePlugin_exports = {};
21
21
  __export(writeCachePlugin_exports, {
22
22
  WriteCachePlugin: () => WriteCachePlugin
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umijs/mfsu",
3
- "version": "4.0.8",
3
+ "version": "4.0.11",
4
4
  "description": "@umijs/mfsu",
5
5
  "homepage": "https://github.com/umijs/umi/tree/master/packages/mfsu#readme",
6
6
  "bugs": "https://github.com/umijs/umi/issues",
@@ -17,19 +17,20 @@
17
17
  "vendors"
18
18
  ],
19
19
  "scripts": {
20
- "build": "pnpm father build",
20
+ "build": "umi-scripts father build",
21
21
  "build:deps": "umi-scripts bundleDeps",
22
- "dev": "pnpm father dev",
22
+ "dev": "umi-scripts father dev",
23
23
  "test": "umi-scripts jest-turbo"
24
24
  },
25
25
  "dependencies": {
26
- "@umijs/bundler-esbuild": "4.0.8",
27
- "@umijs/bundler-utils": "4.0.8",
28
- "@umijs/utils": "4.0.8",
26
+ "@umijs/bundler-esbuild": "4.0.11",
27
+ "@umijs/bundler-utils": "4.0.11",
28
+ "@umijs/utils": "4.0.11",
29
29
  "enhanced-resolve": "5.9.3",
30
30
  "is-equal": "^1.6.4"
31
31
  },
32
32
  "devDependencies": {
33
+ "is-absolute-url": "^3.0.3",
33
34
  "mrmime": "1.0.0",
34
35
  "webpack": "5.72.1",
35
36
  "webpack-virtual-modules": "0.4.3"
@@ -42,6 +43,7 @@
42
43
  ],
43
44
  "compiledConfig": {
44
45
  "deps": [
46
+ "is-absolute-url",
45
47
  "mrmime",
46
48
  "webpack-virtual-modules"
47
49
  ],