@dcloudio/uni-cli-shared 3.0.0-5030320261023001 → 3.0.0-5030420261029001

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.
@@ -108,7 +108,7 @@ function uniUTSUVueJavaScriptPlugin(options = {}) {
108
108
  result = `<script${attributes} lang="uts">`;
109
109
  }
110
110
  else if (lang === 'ts') {
111
- // Android VDOM 模式下,TypeScript 继续由 uts2js 处理。
111
+ // App VDOM 将 lang="ts" 归一为 UTS,保持各平台原有的 UTS 编译链。
112
112
  result = match.replace(langMatch[0], `${langMatch[1]}lang="uts"`);
113
113
  }
114
114
  else {
package/dist/x.js CHANGED
@@ -32,7 +32,10 @@ function isUniAppXWebVapor() {
32
32
  exports.isUniAppXWebVapor = isUniAppXWebVapor;
33
33
  function isUniAppXStandardScriptSupported(platform = process.env.UNI_UTS_PLATFORM) {
34
34
  return (isUniAppX() &&
35
- (platform !== 'app-android' || process.env.UNI_APP_X_DOM2 === 'true'));
35
+ // App VDOM 保持 UTS 编译;标准 JS/TS 仅用于 Vapor、Web 和小程序。
36
+ (process.env.UNI_APP_X_DOM2 === 'true' ||
37
+ platform === 'web' ||
38
+ platform?.startsWith('mp-') === true));
36
39
  }
37
40
  exports.isUniAppXStandardScriptSupported = isUniAppXStandardScriptSupported;
38
41
  function shouldUseHighResolutionSourceMap() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcloudio/uni-cli-shared",
3
- "version": "3.0.0-5030320261023001",
3
+ "version": "3.0.0-5030420261029001",
4
4
  "description": "@dcloudio/uni-cli-shared",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -71,9 +71,9 @@
71
71
  "unimport": "4.1.1",
72
72
  "unplugin-auto-import": "19.1.0",
73
73
  "xregexp": "5.1.2",
74
- "@dcloudio/uni-shared": "3.0.0-5030320261023001",
75
- "@dcloudio/uni-nvue-styler": "3.0.0-5030320261023001",
76
- "@dcloudio/uni-i18n": "3.0.0-5030320261023001"
74
+ "@dcloudio/uni-shared": "3.0.0-5030420261029001",
75
+ "@dcloudio/uni-nvue-styler": "3.0.0-5030420261029001",
76
+ "@dcloudio/uni-i18n": "3.0.0-5030420261029001"
77
77
  },
78
78
  "gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da",
79
79
  "devDependencies": {
@@ -93,6 +93,6 @@
93
93
  "code-frame": "link:@types/@babel/code-frame",
94
94
  "postcss": "8.5.6",
95
95
  "vue": "3.4.21",
96
- "@dcloudio/uni-uts-v1": "3.0.0-5030320261023001"
96
+ "@dcloudio/uni-uts-v1": "3.0.0-5030420261029001"
97
97
  }
98
98
  }