@dcloudio/vue-cli-plugin-uni 2.0.0-alpha-32920211123002 → 2.0.0-alpha-33020211124001
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 +3 -0
- package/package.json +3 -3
- package/util/format-errors.js +6 -5
package/lib/mp/index.js
CHANGED
|
@@ -195,6 +195,9 @@ module.exports = {
|
|
|
195
195
|
alias['@dcloudio/uni-app'] = require.resolve('@dcloudio/vue-cli-plugin-uni/packages/uni-app')
|
|
196
196
|
}
|
|
197
197
|
|
|
198
|
+
// 使用外层依赖的版本
|
|
199
|
+
alias['regenerator-runtime'] = require.resolve('regenerator-runtime')
|
|
200
|
+
|
|
198
201
|
return {
|
|
199
202
|
mode: process.env.NODE_ENV === 'production' ? 'production' : 'development',
|
|
200
203
|
entry () {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dcloudio/vue-cli-plugin-uni",
|
|
3
|
-
"version": "2.0.0-alpha-
|
|
3
|
+
"version": "2.0.0-alpha-33020211124001",
|
|
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.0-alpha-
|
|
20
|
+
"@dcloudio/uni-stat": "^2.0.0-alpha-33020211124001",
|
|
21
21
|
"buffer-json": "^2.0.0",
|
|
22
22
|
"copy-webpack-plugin": "^5.1.1",
|
|
23
23
|
"cross-env": "^5.2.0",
|
|
@@ -37,5 +37,5 @@
|
|
|
37
37
|
"wrap-loader": "^0.2.0",
|
|
38
38
|
"xregexp": "4.0.0"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "f6251edae98a4e85cf92001f90a1d6b7749dbfa5"
|
|
41
41
|
}
|
package/util/format-errors.js
CHANGED
|
@@ -78,11 +78,11 @@ function ModuleBuildError (err) {
|
|
|
78
78
|
builtinCompile = 'pug/jade'
|
|
79
79
|
}
|
|
80
80
|
if (builtinCompile) {
|
|
81
|
-
|
|
82
|
-
autoInstall && sendSignal(name)
|
|
81
|
+
installHBuilderXPlugin(name)
|
|
83
82
|
return {
|
|
84
83
|
message: '预编译器错误:代码使用了' + builtinCompile +
|
|
85
|
-
'语言,但未安装相应的编译器插件,' + (
|
|
84
|
+
'语言,但未安装相应的编译器插件,' + (supportAutoInstallPlugin() ? '正在从' : '请前往') +
|
|
85
|
+
'插件市场安装该插件:\nhttps://ext.dcloud.net.cn/plugin?name=' +
|
|
86
86
|
name
|
|
87
87
|
}
|
|
88
88
|
}
|
|
@@ -98,10 +98,11 @@ function ModuleBuildError (err) {
|
|
|
98
98
|
}
|
|
99
99
|
|
|
100
100
|
function supportAutoInstallPlugin () {
|
|
101
|
-
|
|
101
|
+
// 只要有 HBuilderX 版本号,就一定支持自动安装
|
|
102
|
+
return !!process.env.HX_Version
|
|
102
103
|
}
|
|
103
104
|
|
|
104
|
-
function
|
|
105
|
+
function installHBuilderXPlugin (lang) {
|
|
105
106
|
if (supportAutoInstallPlugin()) {
|
|
106
107
|
return console.error(
|
|
107
108
|
`%HXRunUniAPPPluginName%${lang}%HXRunUniAPPPluginName%`
|