@dcloudio/uni-cli-shared 3.0.0-alpha-3070120230210001 → 3.0.0-alpha-3070420230223001
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.
- package/dist/json/mp/project.js +16 -0
- package/package.json +4 -4
package/dist/json/mp/project.js
CHANGED
|
@@ -43,6 +43,10 @@ function parseMiniProgramProjectJson(jsonStr, platform, { template, pagesJson })
|
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
});
|
|
46
|
+
// 使用了微信小程序手势系统,自动开启 ES6=>ES5
|
|
47
|
+
platform === 'mp-weixin' &&
|
|
48
|
+
weixinSkyline(platformConfig) &&
|
|
49
|
+
openES62ES5(projectJson);
|
|
46
50
|
}
|
|
47
51
|
}
|
|
48
52
|
// 其实仅开发期间 condition 生效即可,暂不做判断
|
|
@@ -59,6 +63,18 @@ function parseMiniProgramProjectJson(jsonStr, platform, { template, pagesJson })
|
|
|
59
63
|
return projectJson;
|
|
60
64
|
}
|
|
61
65
|
exports.parseMiniProgramProjectJson = parseMiniProgramProjectJson;
|
|
66
|
+
function weixinSkyline(config) {
|
|
67
|
+
return (config.renderer === 'skyline' &&
|
|
68
|
+
config.lazyCodeLoading === 'requiredComponents');
|
|
69
|
+
}
|
|
70
|
+
function openES62ES5(config) {
|
|
71
|
+
if (!config.setting) {
|
|
72
|
+
config.setting = {};
|
|
73
|
+
}
|
|
74
|
+
if (!config.setting.es6) {
|
|
75
|
+
config.setting.es6 = true;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
62
78
|
function parseMiniProgramCondition(pagesJson) {
|
|
63
79
|
const launchPagePath = process.env.UNI_CLI_LAUNCH_PAGE_PATH || '';
|
|
64
80
|
if (launchPagePath) {
|
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-3070420230223001",
|
|
4
4
|
"description": "@dcloudio/uni-cli-shared",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
"@babel/core": "^7.20.5",
|
|
26
26
|
"@babel/parser": "^7.20.5",
|
|
27
27
|
"@babel/types": "^7.20.7",
|
|
28
|
-
"@dcloudio/uni-i18n": "3.0.0-alpha-
|
|
29
|
-
"@dcloudio/uni-shared": "3.0.0-alpha-
|
|
28
|
+
"@dcloudio/uni-i18n": "3.0.0-alpha-3070420230223001",
|
|
29
|
+
"@dcloudio/uni-shared": "3.0.0-alpha-3070420230223001",
|
|
30
30
|
"@intlify/core-base": "9.1.9",
|
|
31
31
|
"@intlify/shared": "9.1.9",
|
|
32
32
|
"@intlify/vue-devtools": "9.1.9",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
},
|
|
65
65
|
"gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da",
|
|
66
66
|
"devDependencies": {
|
|
67
|
-
"@dcloudio/uni-uts-v1": "3.0.0-alpha-
|
|
67
|
+
"@dcloudio/uni-uts-v1": "3.0.0-alpha-3070420230223001",
|
|
68
68
|
"@types/babel__core": "^7.1.19",
|
|
69
69
|
"@types/debug": "^4.1.7",
|
|
70
70
|
"@types/estree": "^0.0.51",
|