@dcloudio/uni-cli-shared 3.0.0-alpha-3021320211112001 → 3.0.0-alpha-3021320211117002
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.
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare function getAppRenderer(manifestJson: Record<string, any>): "
|
|
1
|
+
export declare function getAppRenderer(manifestJson: Record<string, any>): "" | "native";
|
|
2
2
|
export declare function getAppCodeSpliting(manifestJson: Record<string, any>): boolean;
|
|
3
3
|
export declare function getAppStyleIsolation(manifestJson: Record<string, any>): 'apply-shared' | 'isolated' | 'shared';
|
package/dist/messages/index.d.ts
CHANGED
package/dist/messages/index.js
CHANGED
package/dist/vite/index.d.ts
CHANGED
|
@@ -16,8 +16,8 @@ interface UniVitePluginUniOptions {
|
|
|
16
16
|
miniProgram?: {
|
|
17
17
|
emitFile?: (emittedFile: EmittedAsset) => string;
|
|
18
18
|
};
|
|
19
|
-
isNativeTag
|
|
20
|
-
isCustomElement
|
|
19
|
+
isNativeTag?: ParserOptions['isNativeTag'];
|
|
20
|
+
isCustomElement?: ParserOptions['isCustomElement'];
|
|
21
21
|
directiveTransforms?: CompilerOptions['directiveTransforms'];
|
|
22
22
|
nodeTransforms?: CompilerOptions['nodeTransforms'];
|
|
23
23
|
};
|
|
@@ -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-3021320211117002",
|
|
4
4
|
"description": "@dcloudio/uni-cli-shared",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -20,12 +20,12 @@
|
|
|
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-3021320211117002",
|
|
24
|
+
"@dcloudio/uni-shared": "3.0.0-alpha-3021320211117002",
|
|
25
25
|
"@rollup/pluginutils": "^4.1.1",
|
|
26
|
-
"@vue/compiler-core": "3.2.
|
|
27
|
-
"@vue/compiler-dom": "3.2.
|
|
28
|
-
"@vue/shared": "3.2.
|
|
26
|
+
"@vue/compiler-core": "3.2.22",
|
|
27
|
+
"@vue/compiler-dom": "3.2.22",
|
|
28
|
+
"@vue/shared": "3.2.22",
|
|
29
29
|
"chalk": "^4.1.1",
|
|
30
30
|
"chokidar": "^3.5.2",
|
|
31
31
|
"compare-versions": "^3.6.0",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"@types/mime": "^2.0.3",
|
|
57
57
|
"@types/module-alias": "^2.0.1",
|
|
58
58
|
"@types/stylus": "^0.48.36",
|
|
59
|
-
"@vue/compiler-sfc": "3.2.
|
|
59
|
+
"@vue/compiler-sfc": "3.2.22",
|
|
60
60
|
"postcss": "^8.3.8"
|
|
61
61
|
}
|
|
62
62
|
}
|