@dcloudio/uni-cli-shared 2.0.0-alpha-32920211021001 → 2.0.0-alpha-32920211101001
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/lib/platform.js +3 -1
- package/lib/url-loader.js +2 -1
- package/package.json +2 -2
package/lib/platform.js
CHANGED
|
@@ -122,7 +122,7 @@ module.exports = {
|
|
|
122
122
|
getShadowCss,
|
|
123
123
|
getShadowTemplate (colorType = 'grey') {
|
|
124
124
|
let tagName = 'cover-image'
|
|
125
|
-
if (process.env.UNI_PLATFORM === 'mp-toutiao') {
|
|
125
|
+
if (process.env.UNI_PLATFORM === 'mp-toutiao' || process.env.UNI_PLATFORM === 'mp-lark') {
|
|
126
126
|
tagName = 'image'
|
|
127
127
|
}
|
|
128
128
|
return `<${tagName} src="https://cdn.dcloud.net.cn/img/shadow-${colorType}.png" style="z-index:998;position:fixed;left:0;top:0;width:100%;height:3px;"/>`
|
|
@@ -137,6 +137,8 @@ module.exports = {
|
|
|
137
137
|
return {
|
|
138
138
|
sourceType: 'module',
|
|
139
139
|
plugins: [
|
|
140
|
+
['pipelineOperator', { proposal: 'minimal' }],
|
|
141
|
+
'doExpressions',
|
|
140
142
|
'optionalChaining',
|
|
141
143
|
'typescript',
|
|
142
144
|
['decorators', {
|
package/lib/url-loader.js
CHANGED
|
@@ -10,6 +10,7 @@ const inlineLimit =
|
|
|
10
10
|
process.env.UNI_PLATFORM === 'mp-qq' ||
|
|
11
11
|
process.env.UNI_PLATFORM === 'mp-toutiao' ||
|
|
12
12
|
process.env.UNI_PLATFORM === 'mp-kuaishou' ||
|
|
13
|
+
process.env.UNI_PLATFORM === 'mp-lark' ||
|
|
13
14
|
process.env.UNI_PLATFORM === 'app-plus' // v2需要base64,v3需要rewriteUrl
|
|
14
15
|
|
|
15
16
|
// mp-weixin,mp-qq,app-plus 非v3(即:需要base64的平台)
|
|
@@ -46,4 +47,4 @@ module.exports = {
|
|
|
46
47
|
}
|
|
47
48
|
},
|
|
48
49
|
rewriteUrl
|
|
49
|
-
}
|
|
50
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dcloudio/uni-cli-shared",
|
|
3
|
-
"version": "2.0.0-alpha-
|
|
3
|
+
"version": "2.0.0-alpha-32920211101001",
|
|
4
4
|
"description": "uni-cli-shared",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"repository": {
|
|
@@ -23,5 +23,5 @@
|
|
|
23
23
|
"postcss-urlrewrite": "^0.2.2",
|
|
24
24
|
"strip-json-comments": "^2.0.1"
|
|
25
25
|
},
|
|
26
|
-
"gitHead": "
|
|
26
|
+
"gitHead": "b41670524d25864c988d3581fb76213360c68377"
|
|
27
27
|
}
|