@umijs/mfsu 4.0.0-canary.20221108.5 → 4.0.0-canary.20221114.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.
|
@@ -30,6 +30,7 @@ var import_constants = require("../constants");
|
|
|
30
30
|
var import_depChunkIdPrefixPlugin = require("../webpackPlugins/depChunkIdPrefixPlugin");
|
|
31
31
|
var import_stripSourceMapUrlPlugin = require("../webpackPlugins/stripSourceMapUrlPlugin");
|
|
32
32
|
var import_getESBuildEntry = require("./getESBuildEntry");
|
|
33
|
+
var MF_ENTRY = "mf_index.js";
|
|
33
34
|
var DepBuilder = class {
|
|
34
35
|
constructor(opts) {
|
|
35
36
|
this.completeFns = [];
|
|
@@ -154,13 +155,13 @@ var DepBuilder = class {
|
|
|
154
155
|
const content = await dep.buildExposeContent();
|
|
155
156
|
(0, import_fs.writeFileSync)((0, import_path.join)(tmpBase, dep.filePath), content, "utf-8");
|
|
156
157
|
}
|
|
157
|
-
(0, import_fs.writeFileSync)((0, import_path.join)(tmpBase,
|
|
158
|
+
(0, import_fs.writeFileSync)((0, import_path.join)(tmpBase, MF_ENTRY), '"\u{1F61B}"', "utf-8");
|
|
158
159
|
}
|
|
159
160
|
getWebpackConfig(opts) {
|
|
160
161
|
var _a, _b;
|
|
161
162
|
const mfName = this.opts.mfsu.opts.mfName;
|
|
162
163
|
const depConfig = import_utils.lodash.cloneDeep(this.opts.mfsu.depConfig);
|
|
163
|
-
depConfig.entry = (0, import_path.join)(this.opts.mfsu.opts.tmpBase,
|
|
164
|
+
depConfig.entry = (0, import_path.join)(this.opts.mfsu.opts.tmpBase, MF_ENTRY);
|
|
164
165
|
depConfig.output.path = this.opts.mfsu.opts.tmpBase;
|
|
165
166
|
depConfig.output.publicPath = "auto";
|
|
166
167
|
depConfig.devtool = false;
|
package/dist/mfsu/mfsu.d.ts
CHANGED
|
@@ -47,7 +47,7 @@ export declare class MFSU {
|
|
|
47
47
|
depConfig: Configuration;
|
|
48
48
|
}): Promise<void>;
|
|
49
49
|
buildDeps(): Promise<void>;
|
|
50
|
-
getMiddlewares(): ((req: Request, res: Response, next: NextFunction) => void)[];
|
|
50
|
+
getMiddlewares(): (((req: Request, res: Response, next: NextFunction) => void) | import("@umijs/bundler-utils/compiled/express/serve-static").RequestHandler<Response<any, Record<string, any>>>)[];
|
|
51
51
|
getBabelPlugins(): any[][];
|
|
52
52
|
getEsbuildLoaderHandler(): any[];
|
|
53
53
|
getCacheFilePath(): string;
|
package/dist/mfsu/mfsu.js
CHANGED
|
@@ -26,6 +26,7 @@ __export(mfsu_exports, {
|
|
|
26
26
|
});
|
|
27
27
|
module.exports = __toCommonJS(mfsu_exports);
|
|
28
28
|
var import_bundler_utils = require("@umijs/bundler-utils");
|
|
29
|
+
var import_express = __toESM(require("@umijs/bundler-utils/compiled/express"));
|
|
29
30
|
var import_utils = require("@umijs/utils");
|
|
30
31
|
var import_assert = __toESM(require("assert"));
|
|
31
32
|
var import_fs = require("fs");
|
|
@@ -244,7 +245,8 @@ promise new Promise(resolve => {
|
|
|
244
245
|
} else {
|
|
245
246
|
next();
|
|
246
247
|
}
|
|
247
|
-
}
|
|
248
|
+
},
|
|
249
|
+
import_express.default.static(this.opts.tmpBase)
|
|
248
250
|
];
|
|
249
251
|
}
|
|
250
252
|
getBabelPlugins() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umijs/mfsu",
|
|
3
|
-
"version": "4.0.0-canary.
|
|
3
|
+
"version": "4.0.0-canary.20221114.1",
|
|
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.0-canary.
|
|
27
|
-
"@umijs/bundler-utils": "4.0.0-canary.
|
|
28
|
-
"@umijs/utils": "4.0.0-canary.
|
|
26
|
+
"@umijs/bundler-esbuild": "4.0.0-canary.20221114.1",
|
|
27
|
+
"@umijs/bundler-utils": "4.0.0-canary.20221114.1",
|
|
28
|
+
"@umijs/utils": "4.0.0-canary.20221114.1",
|
|
29
29
|
"enhanced-resolve": "5.9.3",
|
|
30
30
|
"is-equal": "^1.6.4"
|
|
31
31
|
},
|