@dcloudio/vue-cli-plugin-uni 2.0.2-alpha-3061120221125001 → 2.0.2-alpha-3061120221128001
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/package.json +3 -3
- package/util/format-errors.js +6 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dcloudio/vue-cli-plugin-uni",
|
|
3
|
-
"version": "2.0.2-alpha-
|
|
3
|
+
"version": "2.0.2-alpha-3061120221128001",
|
|
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.2-alpha-
|
|
20
|
+
"@dcloudio/uni-stat": "^2.0.2-alpha-3061120221128001",
|
|
21
21
|
"buffer-json": "^2.0.0",
|
|
22
22
|
"clone-deep": "^4.0.1",
|
|
23
23
|
"cross-env": "^5.2.0",
|
|
@@ -41,5 +41,5 @@
|
|
|
41
41
|
"copy-webpack-plugin": ">=5",
|
|
42
42
|
"postcss": ">=7"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "d8e22fb51309eac7497ebbe9507c46a14e3630d8"
|
|
45
45
|
}
|
package/util/format-errors.js
CHANGED
|
@@ -20,6 +20,8 @@ function formatMessage (msg) {
|
|
|
20
20
|
return ''
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
+
const installPreprocessorTips = {}
|
|
24
|
+
|
|
23
25
|
function ModuleBuildError (err) {
|
|
24
26
|
const lines = err.message.split('\n')
|
|
25
27
|
let firstLineMessage = lines[0]
|
|
@@ -78,6 +80,10 @@ function ModuleBuildError (err) {
|
|
|
78
80
|
builtinCompile = 'pug/jade'
|
|
79
81
|
}
|
|
80
82
|
if (builtinCompile) {
|
|
83
|
+
if (installPreprocessorTips[name]) {
|
|
84
|
+
return false
|
|
85
|
+
}
|
|
86
|
+
installPreprocessorTips[name] = true
|
|
81
87
|
installHBuilderXPlugin(name)
|
|
82
88
|
return {
|
|
83
89
|
message: '预编译器错误:代码使用了' + builtinCompile +
|