@umijs/mfsu 4.0.3 → 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/mfsu/mfsu.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { NextFunction, Request, Response } from '@umijs/bundler-utils/compiled/express';
|
|
2
|
-
import type { AutoUpdateSrcCodeCache } from '@umijs/utils';
|
|
3
2
|
import webpack, { Configuration } from 'webpack';
|
|
4
3
|
import { DepBuilder } from '../depBuilder/depBuilder';
|
|
5
4
|
import { DepModule } from '../depInfo';
|
|
@@ -21,7 +20,7 @@ interface IOpts {
|
|
|
21
20
|
depBuildConfig: any;
|
|
22
21
|
strategy?: 'eager' | 'normal';
|
|
23
22
|
include?: string[];
|
|
24
|
-
srcCodeCache?:
|
|
23
|
+
srcCodeCache?: any;
|
|
25
24
|
}
|
|
26
25
|
export declare class MFSU {
|
|
27
26
|
opts: IOpts;
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import type { AutoUpdateSrcCodeCache } from '@umijs/utils';
|
|
2
1
|
import { IBuildDepPluginOpts } from '../webpackPlugins/buildDepPlugin';
|
|
3
2
|
import type { IMFSUStrategy, MFSU } from './mfsu';
|
|
4
3
|
export declare class StaticAnalyzeStrategy implements IMFSUStrategy {
|
|
5
4
|
private readonly mfsu;
|
|
6
5
|
private staticDepInfo;
|
|
7
|
-
constructor({ mfsu, srcCodeCache
|
|
6
|
+
constructor({ mfsu, srcCodeCache }: {
|
|
8
7
|
mfsu: MFSU;
|
|
9
|
-
srcCodeCache:
|
|
8
|
+
srcCodeCache: any;
|
|
10
9
|
});
|
|
11
10
|
init(): void;
|
|
12
11
|
getDepModules(): Record<string, {
|
|
@@ -9,7 +9,7 @@ const getAliasedPath_1 = require("../babelPlugins/awaitImport/getAliasedPath");
|
|
|
9
9
|
const MFImport_1 = __importDefault(require("../babelPlugins/awaitImport/MFImport"));
|
|
10
10
|
const staticDepInfo_1 = require("../staticDepInfo/staticDepInfo");
|
|
11
11
|
class StaticAnalyzeStrategy {
|
|
12
|
-
constructor({ mfsu, srcCodeCache
|
|
12
|
+
constructor({ mfsu, srcCodeCache }) {
|
|
13
13
|
this.mfsu = mfsu;
|
|
14
14
|
this.staticDepInfo = new staticDepInfo_1.StaticDepInfo({
|
|
15
15
|
mfsu,
|
|
@@ -1,6 +1,19 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ImportSpecifier } from '@umijs/bundler-utils/compiled/es-module-lexer';
|
|
2
2
|
import { checkMatch } from '../babelPlugins/awaitImport/checkMatch';
|
|
3
3
|
import { MFSU } from '../mfsu/mfsu';
|
|
4
|
+
declare type FileChangeEvent = {
|
|
5
|
+
event: 'unlink' | 'change' | 'add';
|
|
6
|
+
path: string;
|
|
7
|
+
};
|
|
8
|
+
declare type MergedCodeInfo = {
|
|
9
|
+
imports: readonly ImportSpecifier[];
|
|
10
|
+
code: string;
|
|
11
|
+
events: FileChangeEvent[];
|
|
12
|
+
};
|
|
13
|
+
declare type AutoUpdateSrcCodeCache = {
|
|
14
|
+
register(listener: (info: MergedCodeInfo) => void): void;
|
|
15
|
+
getMergedCode(): MergedCodeInfo;
|
|
16
|
+
};
|
|
4
17
|
interface IOpts {
|
|
5
18
|
mfsu: MFSU;
|
|
6
19
|
srcCodeCache: AutoUpdateSrcCodeCache;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umijs/mfsu",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.4",
|
|
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",
|
|
@@ -23,9 +23,9 @@
|
|
|
23
23
|
"test": "umi-scripts jest-turbo"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@umijs/bundler-esbuild": "4.0.
|
|
27
|
-
"@umijs/bundler-utils": "4.0.
|
|
28
|
-
"@umijs/utils": "4.0.
|
|
26
|
+
"@umijs/bundler-esbuild": "4.0.4",
|
|
27
|
+
"@umijs/bundler-utils": "4.0.4",
|
|
28
|
+
"@umijs/utils": "4.0.4",
|
|
29
29
|
"enhanced-resolve": "5.9.3",
|
|
30
30
|
"is-equal": "^1.6.4"
|
|
31
31
|
},
|