@dcloudio/vue-cli-plugin-hbuilderx 2.0.1-alpha-36920221117002 → 2.0.1-alpha-36920221118002
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.
|
@@ -10,7 +10,8 @@ const {
|
|
|
10
10
|
getNVueMainEntry,
|
|
11
11
|
nvueJsPreprocessOptions,
|
|
12
12
|
nvueHtmlPreprocessOptions,
|
|
13
|
-
getTemplatePath
|
|
13
|
+
getTemplatePath,
|
|
14
|
+
uts
|
|
14
15
|
} = require('@dcloudio/uni-cli-shared')
|
|
15
16
|
const fileLoader = require('@dcloudio/uni-cli-shared/lib/file-loader')
|
|
16
17
|
const {
|
|
@@ -179,6 +180,13 @@ const rules = [webpack.version[0] > 4 ? {
|
|
|
179
180
|
{
|
|
180
181
|
resourceQuery: /vue&type=template/,
|
|
181
182
|
use: [htmlPreprocessorLoader]
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
type: 'javascript/auto',
|
|
186
|
+
resourceQuery: /uts-proxy/,
|
|
187
|
+
use: [{
|
|
188
|
+
loader: require.resolve('@dcloudio/uni-cli-shared/lib/uts/uts-loader.js')
|
|
189
|
+
}]
|
|
182
190
|
}
|
|
183
191
|
].concat(cssLoaders)
|
|
184
192
|
|
|
@@ -220,8 +228,10 @@ if (process.env.UNI_USING_V3_NATIVE) {
|
|
|
220
228
|
return ''
|
|
221
229
|
}
|
|
222
230
|
}]
|
|
223
|
-
plugins.push(new CopyWebpackPlugin(CopyWebpackPluginVersion > 5 ? {
|
|
224
|
-
|
|
231
|
+
plugins.push(new CopyWebpackPlugin(CopyWebpackPluginVersion > 5 ? {
|
|
232
|
+
patterns
|
|
233
|
+
} : patterns))
|
|
234
|
+
} catch (e) {}
|
|
225
235
|
}
|
|
226
236
|
|
|
227
237
|
if (process.env.UNI_USING_NATIVE || process.env.UNI_USING_V3_NATIVE) {
|
|
@@ -321,7 +331,9 @@ if (process.env.UNI_USING_NATIVE || process.env.UNI_USING_V3_NATIVE) {
|
|
|
321
331
|
}
|
|
322
332
|
})
|
|
323
333
|
}
|
|
324
|
-
plugins.push(new CopyWebpackPlugin(CopyWebpackPluginVersion > 5 ? {
|
|
334
|
+
plugins.push(new CopyWebpackPlugin(CopyWebpackPluginVersion > 5 ? {
|
|
335
|
+
patterns
|
|
336
|
+
} : patterns))
|
|
325
337
|
}
|
|
326
338
|
|
|
327
339
|
try {
|
|
@@ -334,7 +346,7 @@ try {
|
|
|
334
346
|
dir: process.env.UNI_INPUT_DIR
|
|
335
347
|
}))
|
|
336
348
|
}
|
|
337
|
-
} catch (e) {
|
|
349
|
+
} catch (e) {}
|
|
338
350
|
|
|
339
351
|
module.exports = function () {
|
|
340
352
|
return {
|
|
@@ -361,7 +373,9 @@ module.exports = function () {
|
|
|
361
373
|
}
|
|
362
374
|
})
|
|
363
375
|
]
|
|
364
|
-
}, webpack.version[0] > 4 ? {} : {
|
|
376
|
+
}, webpack.version[0] > 4 ? {} : {
|
|
377
|
+
namedModules: false
|
|
378
|
+
}),
|
|
365
379
|
output: {
|
|
366
380
|
path: process.env.UNI_OUTPUT_DIR,
|
|
367
381
|
filename: '[name].js'
|
|
@@ -382,12 +396,16 @@ module.exports = function () {
|
|
|
382
396
|
'?' +
|
|
383
397
|
JSON.stringify({
|
|
384
398
|
type: 'stat'
|
|
385
|
-
})
|
|
399
|
+
}),
|
|
400
|
+
'@vue/composition-api': require.resolve('@dcloudio/vue-cli-plugin-uni/packages/@vue/composition-api')
|
|
386
401
|
},
|
|
387
402
|
modules: [
|
|
388
403
|
'node_modules',
|
|
389
404
|
path.resolve(process.env.UNI_CLI_CONTEXT, 'node_modules'),
|
|
390
405
|
path.resolve(process.env.UNI_INPUT_DIR, 'node_modules')
|
|
406
|
+
],
|
|
407
|
+
plugins: [
|
|
408
|
+
new uts.UTSResolverPlugin()
|
|
391
409
|
]
|
|
392
410
|
},
|
|
393
411
|
resolveLoader: {
|
|
@@ -447,4 +465,4 @@ module.exports = function () {
|
|
|
447
465
|
zlib: false
|
|
448
466
|
}
|
|
449
467
|
}
|
|
450
|
-
}
|
|
468
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dcloudio/vue-cli-plugin-hbuilderx",
|
|
3
|
-
"version": "2.0.1-alpha-
|
|
3
|
+
"version": "2.0.1-alpha-36920221118002",
|
|
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": "4dcf0ef2c510fee51b7d6d82d9e16683c1c4d8a1"
|
|
22
22
|
}
|
|
@@ -80,6 +80,7 @@ class WebpackAppPlusPlugin {
|
|
|
80
80
|
if (utsChangedFiles.length) {
|
|
81
81
|
changedFiles.push(...utsChangedFiles)
|
|
82
82
|
}
|
|
83
|
+
process.env.UNI_APP_UTS_CHANGED_FILES = ''
|
|
83
84
|
} catch (e) {}
|
|
84
85
|
if (!isFirst && changedFiles.length > 0) {
|
|
85
86
|
if (serviceChangedFiles.length === 0 && viewChangedFiles.length === 0 && utsChangedFiles
|