@dcloudio/vue-cli-plugin-uni 2.0.1-alpha-34920220614001 → 2.0.1-alpha-34920220614002
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/mp/index.js +4 -3
- package/package.json +3 -3
package/lib/mp/index.js
CHANGED
|
@@ -189,7 +189,9 @@ module.exports = {
|
|
|
189
189
|
? process.env.UNI_MP_PLUGIN_MAIN
|
|
190
190
|
: JSON.parse(process.env.UNI_MP_PLUGIN_EXPORT)
|
|
191
191
|
).forEach(fileName => addToUniEntry(fileName))
|
|
192
|
-
beforeCode +=
|
|
192
|
+
beforeCode += `
|
|
193
|
+
// @ts-ignore
|
|
194
|
+
${globalEnv}.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;`
|
|
193
195
|
}
|
|
194
196
|
|
|
195
197
|
const alias = { // 仅 mp-weixin
|
|
@@ -218,8 +220,7 @@ module.exports = {
|
|
|
218
220
|
output.pathinfo = false
|
|
219
221
|
}
|
|
220
222
|
return {
|
|
221
|
-
mode: process.env.NODE_ENV === 'production' ? 'production'
|
|
222
|
-
: 'development',
|
|
223
|
+
mode: process.env.NODE_ENV === 'production' ? 'production' : 'development',
|
|
223
224
|
entry () {
|
|
224
225
|
return process.UNI_ENTRY
|
|
225
226
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dcloudio/vue-cli-plugin-uni",
|
|
3
|
-
"version": "2.0.1-alpha-
|
|
3
|
+
"version": "2.0.1-alpha-34920220614002",
|
|
4
4
|
"description": "uni-app plugin for vue-cli 3",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"repository": {
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"author": "fxy060608",
|
|
18
18
|
"license": "Apache-2.0",
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@dcloudio/uni-stat": "^2.0.1-alpha-
|
|
20
|
+
"@dcloudio/uni-stat": "^2.0.1-alpha-34920220614002",
|
|
21
21
|
"buffer-json": "^2.0.0",
|
|
22
22
|
"clone-deep": "^4.0.1",
|
|
23
23
|
"copy-webpack-plugin": "^5.1.1",
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"wrap-loader": "^0.2.0",
|
|
40
40
|
"xregexp": "4.0.0"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "61a67ad68c4f20d4c5e96ca496efbd280efb5ba8"
|
|
43
43
|
}
|