@dcloudio/uni-cli-shared 3.0.0-3070320230222002 → 3.0.0-3070820230322001

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.
@@ -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) {
@@ -22,7 +22,7 @@ export declare const M: {
22
22
  readonly 'file.notfound': "{file} 文件不存在";
23
23
  readonly 'uts.ios.tips': "项目使用了uts插件,iOS平台uts插件代码修改后需要重新生成[自定义基座](https://uniapp.dcloud.net.cn/tutorial/run/run-app.html#customplayground)才能生效";
24
24
  readonly 'uts.android.compiler.server': "项目使用了uts插件,正在安装 uts Android 运行扩展...";
25
- readonly 'uts.ios.windows.tips': "iOS手机在windows上真机运行时uts插件代码修改需提交云端打包自定义基座才能生效";
25
+ readonly 'uts.ios.windows.tips': "iOS手机在windows上使用标准基座真机运行无法使用uts插件,如需使用uts插件请提交云端打包自定义基座";
26
26
  readonly 'uts.ios.standard.tips': "iOS手机在标准基座真机运行暂不支持uts插件,如需调用uts插件请使用自定义基座";
27
27
  } | {
28
28
  readonly 'app.compiler.version': "Compiler version: {version}";
@@ -22,7 +22,7 @@ declare const _default: {
22
22
  readonly 'file.notfound': "{file} 文件不存在";
23
23
  readonly 'uts.ios.tips': "项目使用了uts插件,iOS平台uts插件代码修改后需要重新生成[自定义基座](https://uniapp.dcloud.net.cn/tutorial/run/run-app.html#customplayground)才能生效";
24
24
  readonly 'uts.android.compiler.server': "项目使用了uts插件,正在安装 uts Android 运行扩展...";
25
- readonly 'uts.ios.windows.tips': "iOS手机在windows上真机运行时uts插件代码修改需提交云端打包自定义基座才能生效";
25
+ readonly 'uts.ios.windows.tips': "iOS手机在windows上使用标准基座真机运行无法使用uts插件,如需使用uts插件请提交云端打包自定义基座";
26
26
  readonly 'uts.ios.standard.tips': "iOS手机在标准基座真机运行暂不支持uts插件,如需调用uts插件请使用自定义基座";
27
27
  };
28
28
  export default _default;
@@ -24,6 +24,6 @@ exports.default = {
24
24
  'file.notfound': '{file} 文件不存在',
25
25
  'uts.ios.tips': '项目使用了uts插件,iOS平台uts插件代码修改后需要重新生成[自定义基座](https://uniapp.dcloud.net.cn/tutorial/run/run-app.html#customplayground)才能生效',
26
26
  'uts.android.compiler.server': '项目使用了uts插件,正在安装 uts Android 运行扩展...',
27
- 'uts.ios.windows.tips': 'iOS手机在windows上真机运行时uts插件代码修改需提交云端打包自定义基座才能生效',
27
+ 'uts.ios.windows.tips': 'iOS手机在windows上使用标准基座真机运行无法使用uts插件,如需使用uts插件请提交云端打包自定义基座',
28
28
  'uts.ios.standard.tips': 'iOS手机在标准基座真机运行暂不支持uts插件,如需调用uts插件请使用自定义基座',
29
29
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcloudio/uni-cli-shared",
3
- "version": "3.0.0-3070320230222002",
3
+ "version": "3.0.0-3070820230322001",
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-3070320230222002",
29
- "@dcloudio/uni-shared": "3.0.0-3070320230222002",
28
+ "@dcloudio/uni-i18n": "3.0.0-3070820230322001",
29
+ "@dcloudio/uni-shared": "3.0.0-3070820230322001",
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-3070320230222002",
67
+ "@dcloudio/uni-uts-v1": "3.0.0-3070820230322001",
68
68
  "@types/babel__core": "^7.1.19",
69
69
  "@types/debug": "^4.1.7",
70
70
  "@types/estree": "^0.0.51",