@umijs/plugins 4.4.13-canary.20250915.3 → 4.5.0

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.
Files changed (2) hide show
  1. package/dist/unocss.js +1 -2
  2. package/package.json +3 -3
package/dist/unocss.js CHANGED
@@ -40,8 +40,7 @@ var unocss_default = (api) => {
40
40
  });
41
41
  const outputPath = "uno.css";
42
42
  api.onBeforeCompiler(async () => {
43
- if (process.env.IS_UMI_BUILD_WORKER)
44
- return;
43
+ if (process.env.IS_UMI_BUILD_WORKER) return;
45
44
  if (!(0, import_fs.existsSync)((0, import_path.join)(api.paths.cwd, "unocss.config.ts")))
46
45
  api.logger.warn(
47
46
  "请在项目目录中添加 unocss.config.ts 文件,并配置需要的 unocss presets,否则插件将没有效果!"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umijs/plugins",
3
- "version": "4.4.13-canary.20250915.3",
3
+ "version": "4.5.0",
4
4
  "description": "@umijs/plugins",
5
5
  "homepage": "https://github.com/umijs/umi/tree/master/packages/plugins#readme",
6
6
  "bugs": "https://github.com/umijs/umi/issues",
@@ -45,12 +45,12 @@
45
45
  "styled-components": "6.1.1",
46
46
  "tslib": "^2",
47
47
  "warning": "^4.0.3",
48
- "@umijs/bundler-utils": "4.4.13-canary.20250915.3",
48
+ "@umijs/bundler-utils": "4.5.0",
49
49
  "@umijs/valtio": "1.0.4"
50
50
  },
51
51
  "devDependencies": {
52
52
  "antd": "^4.24.1",
53
- "umi": "4.4.13-canary.20250915.3"
53
+ "umi": "4.5.0"
54
54
  },
55
55
  "publishConfig": {
56
56
  "access": "public"