@dcloudio/vue-cli-plugin-hbuilderx 2.0.1-alpha-36920221114002 → 2.0.1-alpha-36920221117002

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-hbuilderx",
3
- "version": "2.0.1-alpha-36920221114002",
3
+ "version": "2.0.1-alpha-36920221117002",
4
4
  "description": "HBuilderX plugin for vue-cli 3",
5
5
  "main": "index.js",
6
6
  "repository": {
@@ -18,5 +18,5 @@
18
18
  "css": "~2.2.1",
19
19
  "escodegen": "^1.8.1"
20
20
  },
21
- "gitHead": "b54a41b95819e420dac9fb6ca5fe8c8d44021ece"
21
+ "gitHead": "c3b10d572732e9bdd0e7658f04f3b5586e31a5b0"
22
22
  }
@@ -74,8 +74,16 @@ class WebpackAppPlusPlugin {
74
74
  ...viewChangedFiles,
75
75
  ...nvueChangedFiles
76
76
  ])]
77
+ let utsChangedFiles = []
78
+ try {
79
+ utsChangedFiles = JSON.parse(process.env.UNI_APP_UTS_CHANGED_FILES || '[]')
80
+ if (utsChangedFiles.length) {
81
+ changedFiles.push(...utsChangedFiles)
82
+ }
83
+ } catch (e) {}
77
84
  if (!isFirst && changedFiles.length > 0) {
78
- if (serviceChangedFiles.length === 0 && viewChangedFiles.length === 0) {
85
+ if (serviceChangedFiles.length === 0 && viewChangedFiles.length === 0 && utsChangedFiles
86
+ .length === 0) {
79
87
  // 仅 nvue 页面发生变化
80
88
  done('Build complete. PAGES:' + JSON.stringify(changedFiles))
81
89
  } else {