@dcloudio/vue-cli-plugin-hbuilderx 2.0.2-alpha-4020520240731002 → 2.0.2-alpha-4020520240731003
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.2-alpha-
|
|
3
|
+
"version": "2.0.2-alpha-4020520240731003",
|
|
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": "
|
|
21
|
+
"gitHead": "d5530492c32ba9127c340ed282452e5ca5509590"
|
|
22
22
|
}
|
|
@@ -7,7 +7,9 @@ const {
|
|
|
7
7
|
done
|
|
8
8
|
} = require('@vue/cli-shared-utils')
|
|
9
9
|
|
|
10
|
-
const {
|
|
10
|
+
const {
|
|
11
|
+
showRunPrompt
|
|
12
|
+
} = require('@dcloudio/uni-cli-shared')
|
|
11
13
|
|
|
12
14
|
let nvueCompiled = true
|
|
13
15
|
let serviceCompiled = true
|
|
@@ -25,11 +27,26 @@ class WebpackAppPlusPlugin {
|
|
|
25
27
|
if (process.env.UNI_USING_V3) {
|
|
26
28
|
const chunkVersions = {}
|
|
27
29
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
30
|
+
let isAppService = false
|
|
31
|
+
let isAppView = false
|
|
32
|
+
let isAppNVue = false
|
|
31
33
|
|
|
32
|
-
const
|
|
34
|
+
const entry = compiler.options.entry()
|
|
35
|
+
// 兼容webpack5
|
|
36
|
+
if (entry instanceof Promise) {
|
|
37
|
+
compiler.hooks.beforeRun.tapAsync('EntryListPlugin', (compilation, callback) => {
|
|
38
|
+
entry.then(entry => {
|
|
39
|
+
isAppService = !!entry['app-service']
|
|
40
|
+
isAppView = !!entry['app-view']
|
|
41
|
+
isAppNVue = !isAppService && !isAppView
|
|
42
|
+
callback()
|
|
43
|
+
}).catch(callback)
|
|
44
|
+
})
|
|
45
|
+
} else {
|
|
46
|
+
isAppService = !!entry['app-service']
|
|
47
|
+
isAppView = !!entry['app-view']
|
|
48
|
+
isAppNVue = !isAppService && !isAppView
|
|
49
|
+
}
|
|
33
50
|
|
|
34
51
|
compiler.hooks.invalid.tap('WebpackAppPlusPlugin', (fileName, changeTime) => {
|
|
35
52
|
if (!compiling) {
|