@umijs/preset-umi 4.4.13-canary.20250911.3 → 4.4.13-canary.20250912.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.
@@ -110,7 +110,7 @@ var tmpFiles_default = (api) => {
110
110
  [`${api.appData.umi.importSource}/typings`]: [
111
111
  `${umiTempDir}/typings`
112
112
  ],
113
- ...api.config.vite ? {
113
+ ...api.config.vite || api.config.utoopack ? {
114
114
  "@fs/*": ["*"]
115
115
  } : {}
116
116
  }
@@ -136,9 +136,10 @@ var registerMethods_default = (api) => {
136
136
  content.trim(),
137
137
  ""
138
138
  ].filter((text) => text !== false).join("\n");
139
- if (api.appData.vite && isJsFile) {
139
+ const isUtoopack = api.appData.bundler === "utoopack";
140
+ if ((api.appData.vite || isUtoopack) && isJsFile) {
140
141
  const transformIEAR = transformModule.default;
141
- content = transformIEAR({ content, path: absPath }, api);
142
+ content = transformIEAR({ content, path: absPath }, api, isUtoopack);
142
143
  }
143
144
  if (!(0, import_fs.existsSync)(absPath)) {
144
145
  (0, import_fs.writeFileSync)(absPath, content, "utf-8");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umijs/preset-umi",
3
- "version": "4.4.13-canary.20250911.3",
3
+ "version": "4.4.13-canary.20250912.1",
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",
@@ -43,20 +43,20 @@
43
43
  "react-router": "6.3.0",
44
44
  "react-router-dom": "6.3.0",
45
45
  "regenerator-runtime": "0.13.11",
46
- "@umijs/ast": "4.4.13-canary.20250911.3",
47
- "@umijs/bundler-utoopack": "4.4.13-canary.20250911.3",
48
- "@umijs/babel-preset-umi": "4.4.13-canary.20250911.3",
49
- "@umijs/bundler-vite": "4.4.13-canary.20250911.3",
50
- "@umijs/mfsu": "4.4.13-canary.20250911.3",
51
- "@umijs/bundler-utils": "4.4.13-canary.20250911.3",
52
- "@umijs/bundler-webpack": "4.4.13-canary.20250911.3",
53
- "@umijs/plugin-run": "4.4.13-canary.20250911.3",
54
- "@umijs/bundler-esbuild": "4.4.13-canary.20250911.3",
55
- "@umijs/server": "4.4.13-canary.20250911.3",
56
- "@umijs/core": "4.4.13-canary.20250911.3",
57
- "@umijs/renderer-react": "4.4.13-canary.20250911.3",
58
- "@umijs/zod2ts": "4.4.13-canary.20250911.3",
59
- "@umijs/utils": "4.4.13-canary.20250911.3",
46
+ "@umijs/ast": "4.4.13-canary.20250912.1",
47
+ "@umijs/bundler-esbuild": "4.4.13-canary.20250912.1",
48
+ "@umijs/babel-preset-umi": "4.4.13-canary.20250912.1",
49
+ "@umijs/bundler-utils": "4.4.13-canary.20250912.1",
50
+ "@umijs/mfsu": "4.4.13-canary.20250912.1",
51
+ "@umijs/bundler-utoopack": "4.4.13-canary.20250912.1",
52
+ "@umijs/bundler-webpack": "4.4.13-canary.20250912.1",
53
+ "@umijs/core": "4.4.13-canary.20250912.1",
54
+ "@umijs/renderer-react": "4.4.13-canary.20250912.1",
55
+ "@umijs/server": "4.4.13-canary.20250912.1",
56
+ "@umijs/plugin-run": "4.4.13-canary.20250912.1",
57
+ "@umijs/utils": "4.4.13-canary.20250912.1",
58
+ "@umijs/zod2ts": "4.4.13-canary.20250912.1",
59
+ "@umijs/bundler-vite": "4.4.13-canary.20250912.1",
60
60
  "@umijs/ui": "3.0.1"
61
61
  },
62
62
  "devDependencies": {