@dcloudio/uni-cli-shared 3.0.0-alpha-3060020220830002 → 3.0.0-alpha-3060020220831001
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/preprocess/context.js +4 -0
- package/dist/resolve.js +1 -1
- package/package.json +3 -3
|
@@ -27,6 +27,7 @@ const DEFAULT_KEYS = [
|
|
|
27
27
|
'QUICKAPP_WEBVIEW_UNION',
|
|
28
28
|
'VUE2',
|
|
29
29
|
'VUE3',
|
|
30
|
+
'WEB',
|
|
30
31
|
];
|
|
31
32
|
const preVueContext = Object.create(null);
|
|
32
33
|
const preNVueContext = Object.create(null);
|
|
@@ -71,6 +72,9 @@ function initPreContext(platform, userPreContext) {
|
|
|
71
72
|
else if (platform.startsWith('quickapp-webview')) {
|
|
72
73
|
defaultContext.QUICKAPP_WEBVIEW = true;
|
|
73
74
|
}
|
|
75
|
+
else if (platform === 'h5') {
|
|
76
|
+
defaultContext.WEB = true;
|
|
77
|
+
}
|
|
74
78
|
if (userPreContext) {
|
|
75
79
|
if ((0, shared_1.isString)(userPreContext)) {
|
|
76
80
|
try {
|
package/dist/resolve.js
CHANGED
|
@@ -122,7 +122,7 @@ function resolveUtsModule(id, importer, platform) {
|
|
|
122
122
|
}
|
|
123
123
|
const platformDir = path_1.default.resolve(id, parentDir === 'uni_modules' ? 'utssdk' : '', platform);
|
|
124
124
|
// App平台仅支持 uts
|
|
125
|
-
if (platform === 'app-android'
|
|
125
|
+
if (platform === 'app-android') {
|
|
126
126
|
return resolveUtsFile(platformDir, ['.uts']);
|
|
127
127
|
}
|
|
128
128
|
return resolveUtsFile(platformDir);
|
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-3060020220831001",
|
|
4
4
|
"description": "@dcloudio/uni-cli-shared",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
"@babel/core": "^7.17.9",
|
|
23
23
|
"@babel/parser": "^7.17.9",
|
|
24
24
|
"@babel/types": "^7.17.0",
|
|
25
|
-
"@dcloudio/uni-i18n": "3.0.0-alpha-
|
|
26
|
-
"@dcloudio/uni-shared": "3.0.0-alpha-
|
|
25
|
+
"@dcloudio/uni-i18n": "3.0.0-alpha-3060020220831001",
|
|
26
|
+
"@dcloudio/uni-shared": "3.0.0-alpha-3060020220831001",
|
|
27
27
|
"@intlify/core-base": "9.1.9",
|
|
28
28
|
"@intlify/shared": "9.1.9",
|
|
29
29
|
"@intlify/vue-devtools": "9.1.9",
|