@dcloudio/vue-cli-plugin-uni 2.0.2-alpha-4050320250221001 → 2.0.2-alpha-4050420250306001

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcloudio/vue-cli-plugin-uni",
3
- "version": "2.0.2-alpha-4050320250221001",
3
+ "version": "2.0.2-alpha-4050420250306001",
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-4050320250221001",
20
+ "@dcloudio/uni-stat": "^2.0.2-alpha-4050420250306001",
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": "1adb3698ec55eb8a53650168cf207ebd577d953a"
44
+ "gitHead": "5a0cee97fc916258c94ffa281cf859e543e7f44a"
45
45
  }
@@ -22,7 +22,17 @@ function formatMessage (msg) {
22
22
 
23
23
  const installPreprocessorTips = {}
24
24
 
25
+ const isHBuilderXArm = process.platform === 'darwin' && process.arch === 'arm64'
26
+
25
27
  function ModuleBuildError (err) {
28
+ if (isHBuilderXArm) {
29
+ if (err.message.includes('SassError:')) {
30
+ err.message = err.message + `\n \nHBuilderX Mac Arm 版 Vue2 sass 预编译器已由 node-sass 更换为 dart-sass,可能存在部分语法不兼容的问题(https://ask.dcloud.net.cn/question/205992)。
31
+ 解决方案:
32
+ 1. 调整为 dart-sass 支持的语法,比如:将深度选择器 /deep/ 调整为 ::v-deep,官方网站:https://sass-lang.com/
33
+ 2. 使用 HBuilderX Mac Intel 版本,下载地址:https://www.dcloud.io/hbuilderx.html\n \n`
34
+ }
35
+ }
26
36
  const lines = err.message.split('\n')
27
37
  let firstLineMessage = lines[0]
28
38
  if (lines.length > 1) {