@dcloudio/vue-cli-plugin-hbuilderx 2.0.2-3090920231225001 → 2.0.2-4000620240325001
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 +11 -5
- package/package.json +2 -2
|
@@ -349,16 +349,21 @@ try {
|
|
|
349
349
|
}
|
|
350
350
|
} catch (e) {}
|
|
351
351
|
|
|
352
|
-
|
|
352
|
+
let tsLoader
|
|
353
|
+
try {
|
|
354
|
+
tsLoader = require.resolve('ts-loader', {
|
|
355
|
+
paths: [require.resolve('@vue/cli-plugin-babel')]
|
|
356
|
+
})
|
|
357
|
+
} catch (error) {}
|
|
358
|
+
|
|
359
|
+
tsLoader && rules.push({
|
|
353
360
|
test: /\.ts$/,
|
|
354
361
|
use: [{
|
|
355
362
|
loader: require.resolve('babel-loader', {
|
|
356
363
|
paths: [require.resolve('@vue/cli-plugin-babel')]
|
|
357
364
|
})
|
|
358
365
|
}, {
|
|
359
|
-
loader:
|
|
360
|
-
paths: [require.resolve('@vue/cli-plugin-babel')]
|
|
361
|
-
}),
|
|
366
|
+
loader: tsLoader,
|
|
362
367
|
options: Object.assign({
|
|
363
368
|
transpileOnly: false,
|
|
364
369
|
appendTsSuffixTo: ['\\.nvue$', '\\.vue$'],
|
|
@@ -397,7 +402,8 @@ module.exports = function () {
|
|
|
397
402
|
}),
|
|
398
403
|
output: {
|
|
399
404
|
path: process.env.UNI_OUTPUT_DIR,
|
|
400
|
-
filename: '[name].js'
|
|
405
|
+
filename: '[name].js',
|
|
406
|
+
publicPath: '/'
|
|
401
407
|
},
|
|
402
408
|
resolve: {
|
|
403
409
|
extensions: ['.ts', '.js', '.nvue', '.vue', '.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-4000620240325001",
|
|
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": "2f9ba8ff3e3f185745faa67dd4eefaef7f3db374"
|
|
22
22
|
}
|