@umijs/preset-umi 4.0.24 → 4.0.25

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.
@@ -76,7 +76,8 @@ var configPlugins_default = (api) => {
76
76
  base: "/",
77
77
  history: { type: "browser" },
78
78
  svgr: {},
79
- ignoreMomentLocale: true
79
+ ignoreMomentLocale: true,
80
+ mfsu: { strategy: "eager" }
80
81
  };
81
82
  const bundleSchemas = api.config.vite ? (0, import_schema.getSchemas)() : (0, import_schema2.getSchemas)();
82
83
  const extraSchemas = (0, import_schema3.getSchemas)();
@@ -198,7 +198,7 @@ function lastSlash(str) {
198
198
  return str[str.length - 1] === "/" ? str : `${str}/`;
199
199
  }
200
200
  function componentToChunkName(component, cwd) {
201
- return typeof component === "string" ? component.replace(new RegExp(`^${import_utils.lodash.escapeRegExp(lastSlash((0, import_utils.winPath)(cwd || "/")))}`), "").replace(/^.(\/|\\)/, "").replace(/(\/|\\)/g, "__").replace(/\.jsx?$/, "").replace(/\.tsx?$/, "").replace(/\.vue?$/, "").replace(/^src__/, "").replace(/\.\.__/g, "").replace(/[\[\]]/g, "").replace(/^.umi-production__/, "t__").replace(/^pages__/, "p__") : "";
201
+ return typeof component === "string" ? component.replace(new RegExp(`^${import_utils.lodash.escapeRegExp(lastSlash((0, import_utils.winPath)(cwd || "/")))}`), "").replace(/^.(\/|\\)/, "").replace(/(\/|\\)/g, "__").replace(/\.jsx?$/, "").replace(/\.tsx?$/, "").replace(/\.vue?$/, "").replace(/^src__/, "").replace(/\.\.__/g, "").replace(/[\[\]]/g, "").replace(/^.umi-production__/, "t__").replace(/^\./, "").replace(/^pages__/, "p__") : "";
202
202
  }
203
203
  // Annotate the CommonJS export names for ESM import in node:
204
204
  0 && (module.exports = {
@@ -48,7 +48,7 @@ var AutoUpdateSrcCodeCache = class {
48
48
  "**/node_modules/**",
49
49
  "**/.git/**"
50
50
  ],
51
- debouncedTimeout: 500,
51
+ debouncedTimeout: 200,
52
52
  filesLoader: async (files) => {
53
53
  const loaded = {};
54
54
  await this.batchProcess(files);
@@ -72,7 +72,7 @@ var AutoUpdateSrcCodeCache = class {
72
72
  }
73
73
  async initFileList() {
74
74
  const start = Date.now();
75
- const files = await (0, import_fast_glob.default)((0, import_path.join)(this.srcPath, "**", "*.{ts,js,jsx,tsx}"), {
75
+ const files = await (0, import_fast_glob.default)((0, import_utils.winPath)((0, import_path.join)(this.srcPath, "**", "*.{ts,js,jsx,tsx}")), {
76
76
  dot: true,
77
77
  ignore: [
78
78
  "**/*.d.ts",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umijs/preset-umi",
3
- "version": "4.0.24",
3
+ "version": "4.0.25",
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.24",
29
- "@umijs/babel-preset-umi": "4.0.24",
30
- "@umijs/bundler-utils": "4.0.24",
31
- "@umijs/bundler-vite": "4.0.24",
32
- "@umijs/bundler-webpack": "4.0.24",
33
- "@umijs/core": "4.0.24",
28
+ "@umijs/ast": "4.0.25",
29
+ "@umijs/babel-preset-umi": "4.0.25",
30
+ "@umijs/bundler-utils": "4.0.25",
31
+ "@umijs/bundler-vite": "4.0.25",
32
+ "@umijs/bundler-webpack": "4.0.25",
33
+ "@umijs/core": "4.0.25",
34
34
  "@umijs/did-you-know": "^1.0.0",
35
35
  "@umijs/history": "5.3.1",
36
- "@umijs/mfsu": "4.0.24",
37
- "@umijs/plugin-run": "4.0.24",
38
- "@umijs/renderer-react": "4.0.24",
39
- "@umijs/server": "4.0.24",
40
- "@umijs/utils": "4.0.24",
36
+ "@umijs/mfsu": "4.0.25",
37
+ "@umijs/plugin-run": "4.0.25",
38
+ "@umijs/renderer-react": "4.0.25",
39
+ "@umijs/server": "4.0.25",
40
+ "@umijs/utils": "4.0.25",
41
41
  "click-to-react-component": "^1.0.8",
42
42
  "core-js": "3.22.4",
43
43
  "current-script-polyfill": "1.0.0",