@dcloudio/vue-cli-plugin-hbuilderx 2.0.2-3090820231124001 → 2.0.2-3090920231225001
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/build/webpack.nvue.conf.js +19 -1
- package/package.json +2 -2
|
@@ -349,6 +349,24 @@ try {
|
|
|
349
349
|
}
|
|
350
350
|
} catch (e) {}
|
|
351
351
|
|
|
352
|
+
rules.push({
|
|
353
|
+
test: /\.ts$/,
|
|
354
|
+
use: [{
|
|
355
|
+
loader: require.resolve('babel-loader', {
|
|
356
|
+
paths: [require.resolve('@vue/cli-plugin-babel')]
|
|
357
|
+
})
|
|
358
|
+
}, {
|
|
359
|
+
loader: require.resolve('ts-loader', {
|
|
360
|
+
paths: [require.resolve('@vue/cli-plugin-babel')]
|
|
361
|
+
}),
|
|
362
|
+
options: Object.assign({
|
|
363
|
+
transpileOnly: false,
|
|
364
|
+
appendTsSuffixTo: ['\\.nvue$', '\\.vue$'],
|
|
365
|
+
happyPackMode: false
|
|
366
|
+
}, require('@dcloudio/vue-cli-plugin-uni/lib/util').getTsLoadOptions())
|
|
367
|
+
}, jsPreprocessorLoader]
|
|
368
|
+
})
|
|
369
|
+
|
|
352
370
|
module.exports = function () {
|
|
353
371
|
return {
|
|
354
372
|
target: 'node', // 激活 vue-loader 的 isServer 逻辑
|
|
@@ -382,7 +400,7 @@ module.exports = function () {
|
|
|
382
400
|
filename: '[name].js'
|
|
383
401
|
},
|
|
384
402
|
resolve: {
|
|
385
|
-
extensions: ['.js', '.nvue', '.vue', '.json'],
|
|
403
|
+
extensions: ['.ts', '.js', '.nvue', '.vue', '.json'],
|
|
386
404
|
alias: {
|
|
387
405
|
'@/pages.json': path.resolve(process.env.UNI_INPUT_DIR, 'pages.json') + '?' + JSON.stringify({
|
|
388
406
|
type: 'origin-pages-json'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dcloudio/vue-cli-plugin-hbuilderx",
|
|
3
|
-
"version": "2.0.2-
|
|
3
|
+
"version": "2.0.2-3090920231225001",
|
|
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": "930c6d04bc26067ed5f7b8a1e782ad43760509fd"
|
|
22
22
|
}
|