@dcloudio/uni-cli-shared 3.0.0-alpha-3021320211116001 → 3.0.0-alpha-3021320211117001
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.
|
@@ -30,7 +30,10 @@ function uniViteCopyPlugin({ targets, verbose, }) {
|
|
|
30
30
|
cwd: process.env.UNI_INPUT_DIR,
|
|
31
31
|
}, (watcher) => {
|
|
32
32
|
if (process.env.NODE_ENV !== 'development') {
|
|
33
|
-
|
|
33
|
+
// 生产模式下,延迟 close,否则会影响 chokidar 初始化的 add 等事件
|
|
34
|
+
setTimeout(() => {
|
|
35
|
+
watcher.close().then(() => resolve(void 0));
|
|
36
|
+
}, 1000);
|
|
34
37
|
}
|
|
35
38
|
else {
|
|
36
39
|
resolve(void 0);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dcloudio/uni-cli-shared",
|
|
3
|
-
"version": "3.0.0-alpha-
|
|
3
|
+
"version": "3.0.0-alpha-3021320211117001",
|
|
4
4
|
"description": "@dcloudio/uni-cli-shared",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@babel/parser": "^7.15.0",
|
|
22
22
|
"@babel/types": "^7.15.0",
|
|
23
|
-
"@dcloudio/uni-i18n": "3.0.0-alpha-
|
|
24
|
-
"@dcloudio/uni-shared": "3.0.0-alpha-
|
|
23
|
+
"@dcloudio/uni-i18n": "3.0.0-alpha-3021320211117001",
|
|
24
|
+
"@dcloudio/uni-shared": "3.0.0-alpha-3021320211117001",
|
|
25
25
|
"@rollup/pluginutils": "^4.1.1",
|
|
26
26
|
"@vue/compiler-core": "3.2.22",
|
|
27
27
|
"@vue/compiler-dom": "3.2.22",
|