@umijs/plugins 4.3.30 → 4.3.32

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 +11 -1
  2. package/package.json +3 -3
package/dist/unocss.js CHANGED
@@ -60,7 +60,17 @@ var unocss_default = (api) => {
60
60
  cwd: api.cwd,
61
61
  stdio: isDev ? "pipe" : "inherit"
62
62
  });
63
- if (!isDev) {
63
+ if (isDev) {
64
+ await new Promise((resolve) => {
65
+ const { stdout } = execaRes;
66
+ function dataHandler() {
67
+ resolve();
68
+ stdout == null ? void 0 : stdout.off("data", dataHandler);
69
+ }
70
+ stdout == null ? void 0 : stdout.on("data", dataHandler);
71
+ });
72
+ api.logger.info("unocss watch mode is running!");
73
+ } else {
64
74
  await execaRes;
65
75
  }
66
76
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umijs/plugins",
3
- "version": "4.3.30",
3
+ "version": "4.3.32",
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.3.30",
48
+ "@umijs/bundler-utils": "4.3.32",
49
49
  "@umijs/valtio": "1.0.4"
50
50
  },
51
51
  "devDependencies": {
52
52
  "antd": "^4.24.1",
53
- "umi": "4.3.30"
53
+ "umi": "4.3.32"
54
54
  },
55
55
  "publishConfig": {
56
56
  "access": "public"