@umijs/mfsu 4.0.1 → 4.0.4
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/dist/babelPlugins/awaitImport/MFImport.d.ts +24 -0
- package/dist/babelPlugins/awaitImport/MFImport.js +68 -0
- package/dist/babelPlugins/awaitImport/checkMatch.d.ts +1 -0
- package/dist/babelPlugins/awaitImport/checkMatch.js +1 -0
- package/dist/babelPlugins/awaitImport/getAliasedPath.d.ts +5 -2
- package/dist/babelPlugins/awaitImport/getAliasedPath.js +16 -2
- package/dist/dep/dep.d.ts +1 -1
- package/dist/dep/dep.js +1 -1
- package/dist/depBuilder/depBuilder.d.ts +1 -1
- package/dist/depInfo.d.ts +18 -4
- package/dist/depInfo.js +7 -0
- package/dist/esbuildHandlers/awaitImport/index.d.ts +3 -0
- package/dist/esbuildHandlers/awaitImport/index.js +30 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/{mfsu.d.ts → mfsu/mfsu.d.ts} +21 -25
- package/dist/{mfsu.js → mfsu/mfsu.js} +69 -75
- package/dist/mfsu/strategyCompileTime.d.ts +20 -0
- package/dist/mfsu/strategyCompileTime.js +100 -0
- package/dist/mfsu/strategyStaticAnalyze.d.ts +23 -0
- package/dist/mfsu/strategyStaticAnalyze.js +122 -0
- package/dist/moduleGraph.d.ts +3 -8
- package/dist/staticDepInfo/importParser.d.ts +4 -0
- package/dist/staticDepInfo/importParser.js +8 -0
- package/dist/staticDepInfo/simulations/babel-plugin-import.d.ts +15 -0
- package/dist/staticDepInfo/simulations/babel-plugin-import.js +99 -0
- package/dist/staticDepInfo/staticDepInfo.d.ts +56 -0
- package/dist/staticDepInfo/staticDepInfo.js +198 -0
- package/dist/webpackPlugins/buildDepPlugin.d.ts +4 -3
- package/dist/webpackPlugins/buildDepPlugin.js +10 -4
- package/package.json +12 -10
- package/vendors/importParser/_importParser.js +683 -0
- package/vendors/importParser/importParser.jison +105 -0
|
@@ -7,10 +7,16 @@ class BuildDepPlugin {
|
|
|
7
7
|
this.opts = opts;
|
|
8
8
|
}
|
|
9
9
|
apply(compiler) {
|
|
10
|
-
compiler.hooks.
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
compiler.hooks.watchRun.tapPromise(PLUGIN_NAME, (c) => {
|
|
11
|
+
var _a, _b;
|
|
12
|
+
return ((_b = (_a = this.opts).onFileChange) === null || _b === void 0 ? void 0 : _b.call(_a, c)) || Promise.resolve();
|
|
13
|
+
});
|
|
14
|
+
compiler.hooks.beforeCompile.tap(PLUGIN_NAME, () => {
|
|
15
|
+
var _a, _b;
|
|
16
|
+
(_b = (_a = this.opts).beforeCompile) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
17
|
+
});
|
|
18
|
+
compiler.hooks.compile.tap(PLUGIN_NAME, () => {
|
|
19
|
+
this.opts.onCompileDone();
|
|
14
20
|
});
|
|
15
21
|
}
|
|
16
22
|
}
|
package/package.json
CHANGED
|
@@ -1,31 +1,33 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umijs/mfsu",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.4",
|
|
4
4
|
"description": "@umijs/mfsu",
|
|
5
|
-
"homepage": "https://github.com/umijs/umi
|
|
6
|
-
"bugs": "https://github.com/umijs/umi
|
|
5
|
+
"homepage": "https://github.com/umijs/umi/tree/master/packages/mfsu#readme",
|
|
6
|
+
"bugs": "https://github.com/umijs/umi/issues",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
|
9
|
-
"url": "https://github.com/umijs/umi
|
|
9
|
+
"url": "https://github.com/umijs/umi"
|
|
10
10
|
},
|
|
11
11
|
"license": "MIT",
|
|
12
12
|
"main": "dist/index.js",
|
|
13
13
|
"types": "dist/index.d.ts",
|
|
14
14
|
"files": [
|
|
15
15
|
"compiled",
|
|
16
|
-
"dist"
|
|
16
|
+
"dist",
|
|
17
|
+
"vendors"
|
|
17
18
|
],
|
|
18
19
|
"scripts": {
|
|
19
20
|
"build": "pnpm tsc",
|
|
20
21
|
"build:deps": "umi-scripts bundleDeps",
|
|
21
|
-
"dev": "pnpm build --
|
|
22
|
+
"dev": "pnpm build --watch",
|
|
22
23
|
"test": "umi-scripts jest-turbo"
|
|
23
24
|
},
|
|
24
25
|
"dependencies": {
|
|
25
|
-
"@umijs/bundler-esbuild": "4.0.
|
|
26
|
-
"@umijs/bundler-utils": "4.0.
|
|
27
|
-
"@umijs/utils": "4.0.
|
|
28
|
-
"enhanced-resolve": "5.9.3"
|
|
26
|
+
"@umijs/bundler-esbuild": "4.0.4",
|
|
27
|
+
"@umijs/bundler-utils": "4.0.4",
|
|
28
|
+
"@umijs/utils": "4.0.4",
|
|
29
|
+
"enhanced-resolve": "5.9.3",
|
|
30
|
+
"is-equal": "^1.6.4"
|
|
29
31
|
},
|
|
30
32
|
"devDependencies": {
|
|
31
33
|
"mrmime": "1.0.0",
|