@umijs/preset-umi 4.0.22 → 4.0.23
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.
|
@@ -75,7 +75,8 @@ var configPlugins_default = (api) => {
|
|
|
75
75
|
mountElementId: "root",
|
|
76
76
|
base: "/",
|
|
77
77
|
history: { type: "browser" },
|
|
78
|
-
svgr: {}
|
|
78
|
+
svgr: {},
|
|
79
|
+
ignoreMomentLocale: true
|
|
79
80
|
};
|
|
80
81
|
const bundleSchemas = api.config.vite ? (0, import_schema.getSchemas)() : (0, import_schema2.getSchemas)();
|
|
81
82
|
const extraSchemas = (0, import_schema3.getSchemas)();
|
|
@@ -434,6 +434,7 @@ export default function EmptyRoute() {
|
|
|
434
434
|
path: (0, import_path.join)(rendererPath, "dist/index.js"),
|
|
435
435
|
exportMembers
|
|
436
436
|
})).join(", ")} } from '${rendererPath}';`);
|
|
437
|
+
exports.push(`export type { History } from '${rendererPath}'`);
|
|
437
438
|
exports.push("// umi/client/client/plugin");
|
|
438
439
|
const umiPluginPath = (0, import_utils.winPath)((0, import_path.join)(umiDir, "client/client/plugin.js"));
|
|
439
440
|
exports.push(`export { ${(await getExportsAndCheck({
|
|
@@ -94,13 +94,14 @@ var AutoUpdateSrcCodeCache = class {
|
|
|
94
94
|
outdir: this.cachePath,
|
|
95
95
|
outbase: this.srcPath,
|
|
96
96
|
loader: {
|
|
97
|
+
".js": "jsx",
|
|
97
98
|
".jsx": "tsx"
|
|
98
99
|
},
|
|
99
|
-
logLevel: "
|
|
100
|
+
logLevel: "error"
|
|
100
101
|
});
|
|
101
102
|
} catch (e) {
|
|
102
103
|
if (((_a = e.errors) == null ? void 0 : _a.length) || ((_b = e.warnings) == null ? void 0 : _b.length)) {
|
|
103
|
-
import_utils.logger.warn("transpile code with esbuild got ", ((_c = e.errors) == null ? void 0 : _c.
|
|
104
|
+
import_utils.logger.warn("transpile code with esbuild got ", ((_c = e.errors) == null ? void 0 : _c.length) || 0, "errors,", ((_d = e.warnings) == null ? void 0 : _d.length) || 0, "warnings");
|
|
104
105
|
import_utils.logger.debug("esbuild transpile code with error", e);
|
|
105
106
|
} else {
|
|
106
107
|
import_utils.logger.warn("transpile code with esbuild error", e);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umijs/preset-umi",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.23",
|
|
4
4
|
"description": "@umijs/preset-umi",
|
|
5
5
|
"homepage": "https://github.com/umijs/umi/tree/master/packages/preset-umi#readme",
|
|
6
6
|
"bugs": "https://github.com/umijs/umi/issues",
|
|
@@ -25,19 +25,19 @@
|
|
|
25
25
|
"test": "umi-scripts jest-turbo"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@umijs/ast": "4.0.
|
|
29
|
-
"@umijs/babel-preset-umi": "4.0.
|
|
30
|
-
"@umijs/bundler-utils": "4.0.
|
|
31
|
-
"@umijs/bundler-vite": "4.0.
|
|
32
|
-
"@umijs/bundler-webpack": "4.0.
|
|
33
|
-
"@umijs/core": "4.0.
|
|
28
|
+
"@umijs/ast": "4.0.23",
|
|
29
|
+
"@umijs/babel-preset-umi": "4.0.23",
|
|
30
|
+
"@umijs/bundler-utils": "4.0.23",
|
|
31
|
+
"@umijs/bundler-vite": "4.0.23",
|
|
32
|
+
"@umijs/bundler-webpack": "4.0.23",
|
|
33
|
+
"@umijs/core": "4.0.23",
|
|
34
34
|
"@umijs/did-you-know": "^1.0.0",
|
|
35
35
|
"@umijs/history": "5.3.1",
|
|
36
|
-
"@umijs/mfsu": "4.0.
|
|
37
|
-
"@umijs/plugin-run": "4.0.
|
|
38
|
-
"@umijs/renderer-react": "4.0.
|
|
39
|
-
"@umijs/server": "4.0.
|
|
40
|
-
"@umijs/utils": "4.0.
|
|
36
|
+
"@umijs/mfsu": "4.0.23",
|
|
37
|
+
"@umijs/plugin-run": "4.0.23",
|
|
38
|
+
"@umijs/renderer-react": "4.0.23",
|
|
39
|
+
"@umijs/server": "4.0.23",
|
|
40
|
+
"@umijs/utils": "4.0.23",
|
|
41
41
|
"click-to-react-component": "^1.0.8",
|
|
42
42
|
"core-js": "3.22.4",
|
|
43
43
|
"current-script-polyfill": "1.0.0",
|