@dcloudio/uni-cli-shared 3.0.0-alpha-4080120250919001 → 3.0.0-alpha-4080320251016001
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/json/mp/jsonFile.js +9 -1
- package/package.json +4 -4
package/dist/json/mp/jsonFile.js
CHANGED
|
@@ -10,6 +10,7 @@ const shared_1 = require("@vue/shared");
|
|
|
10
10
|
const utils_1 = require("../../utils");
|
|
11
11
|
const resolve_1 = require("../../resolve");
|
|
12
12
|
const utils_2 = require("../../vue/utils");
|
|
13
|
+
const uni_shared_1 = require("@dcloudio/uni-shared");
|
|
13
14
|
let appJsonCache = {};
|
|
14
15
|
const jsonFilesCache = new Map();
|
|
15
16
|
const jsonPagesCache = new Map();
|
|
@@ -123,7 +124,14 @@ function isMiniProgramUsingComponent(name, options) {
|
|
|
123
124
|
exports.isMiniProgramUsingComponent = isMiniProgramUsingComponent;
|
|
124
125
|
function findMiniProgramUsingComponents({ filename, inputDir, componentsDir, }) {
|
|
125
126
|
const globalUsingComponents = appJsonCache && appJsonCache.usingComponents;
|
|
126
|
-
|
|
127
|
+
// 避免 uniad 相关插件 被当作 vue 组件处理
|
|
128
|
+
const enableUniAdPlugin = process.env.UNI_PLATFORM === 'mp-weixin';
|
|
129
|
+
const miniProgramComponents = enableUniAdPlugin
|
|
130
|
+
? uni_shared_1.UNI_AD_PLUGINS.reduce((acc, name) => {
|
|
131
|
+
acc[name] = 'plugin';
|
|
132
|
+
return acc;
|
|
133
|
+
}, {})
|
|
134
|
+
: {};
|
|
127
135
|
if (globalUsingComponents) {
|
|
128
136
|
(0, shared_1.extend)(miniProgramComponents, findMiniProgramUsingComponent(globalUsingComponents, componentsDir));
|
|
129
137
|
}
|
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-4080320251016001",
|
|
4
4
|
"description": "@dcloudio/uni-cli-shared",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -68,8 +68,8 @@
|
|
|
68
68
|
"unimport": "4.1.1",
|
|
69
69
|
"unplugin-auto-import": "19.1.0",
|
|
70
70
|
"xregexp": "3.1.0",
|
|
71
|
-
"@dcloudio/uni-i18n": "3.0.0-alpha-
|
|
72
|
-
"@dcloudio/uni-shared": "3.0.0-alpha-
|
|
71
|
+
"@dcloudio/uni-i18n": "3.0.0-alpha-4080320251016001",
|
|
72
|
+
"@dcloudio/uni-shared": "3.0.0-alpha-4080320251016001"
|
|
73
73
|
},
|
|
74
74
|
"gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da",
|
|
75
75
|
"devDependencies": {
|
|
@@ -89,6 +89,6 @@
|
|
|
89
89
|
"code-frame": "link:@types/@babel/code-frame",
|
|
90
90
|
"postcss": "8.4.45",
|
|
91
91
|
"vue": "3.4.21",
|
|
92
|
-
"@dcloudio/uni-uts-v1": "3.0.0-alpha-
|
|
92
|
+
"@dcloudio/uni-uts-v1": "3.0.0-alpha-4080320251016001"
|
|
93
93
|
}
|
|
94
94
|
}
|