@dcloudio/uni-cli-shared 2.0.1-33520211229001 → 2.0.1-33920220121002
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/package.js +6 -2
- package/lib/url-loader.js +1 -0
- package/package.json +2 -2
package/lib/package.js
CHANGED
|
@@ -35,7 +35,11 @@ module.exports = {
|
|
|
35
35
|
if (scriptName !== name) {
|
|
36
36
|
const define = uniAppOptions.scripts[scriptName].define
|
|
37
37
|
Object.keys(define).forEach(name => {
|
|
38
|
-
define[name]
|
|
38
|
+
if (typeof scriptOptions.define[name] !== 'undefined') {
|
|
39
|
+
delete define[name]
|
|
40
|
+
} else {
|
|
41
|
+
define[name] = false
|
|
42
|
+
}
|
|
39
43
|
})
|
|
40
44
|
Object.assign(scriptOptions.define, define)
|
|
41
45
|
}
|
|
@@ -50,4 +54,4 @@ module.exports = {
|
|
|
50
54
|
|
|
51
55
|
return scriptOptions
|
|
52
56
|
}
|
|
53
|
-
}
|
|
57
|
+
}
|
package/lib/url-loader.js
CHANGED
|
@@ -11,6 +11,7 @@ const inlineLimit =
|
|
|
11
11
|
process.env.UNI_PLATFORM === 'mp-toutiao' ||
|
|
12
12
|
process.env.UNI_PLATFORM === 'mp-kuaishou' ||
|
|
13
13
|
process.env.UNI_PLATFORM === 'mp-lark' ||
|
|
14
|
+
process.env.UNI_PLATFORM === 'mp-jd' ||
|
|
14
15
|
process.env.UNI_PLATFORM === 'app-plus' // v2需要base64,v3需要rewriteUrl
|
|
15
16
|
|
|
16
17
|
// mp-weixin,mp-qq,app-plus 非v3(即:需要base64的平台)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dcloudio/uni-cli-shared",
|
|
3
|
-
"version": "2.0.1-
|
|
3
|
+
"version": "2.0.1-33920220121002",
|
|
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": "2bd26ff3115ec3c3c8b4a9ade025eb4d82d9e06f"
|
|
27
27
|
}
|