Skip to content

Commit 6ec2f5f

Browse files
committed
chore: bump deps
1 parent d570fa3 commit 6ec2f5f

File tree

9 files changed

+4563
-7065
lines changed

9 files changed

+4563
-7065
lines changed

example/.babelrc

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
11
{
2-
"plugins": ["transform-vue-jsx"]
2+
"presets": [
3+
["@babel/env", { "modules": false }]
4+
],
5+
"plugins": [
6+
"@babel/syntax-jsx",
7+
"transform-vue-jsx"
8+
]
39
}

example/tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"compilerOptions": {
3-
"target": "es5",
3+
"target": "esnext",
44
"lib": [
55
"dom",
6-
"es2015"
6+
"esnext"
77
],
88
"module": "es2015",
99
"moduleResolution": "node",

example/webpack.config.js

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1+
const VueLoaderPlugin = require('vue-loader/lib/plugin')
2+
13
module.exports = {
4+
mode: 'development',
25
entry: './example/example.ts',
36
output: {
47
path: __dirname,
@@ -13,21 +16,17 @@ module.exports = {
1316
module: {
1417
rules: [
1518
{
16-
test: /\.ts$/,
17-
exclude: /node_modules/,
18-
use: {
19-
loader: 'ts-loader',
20-
options: {
21-
appendTsSuffixTo: [/\.vue$/]
22-
}
23-
}
24-
},
25-
{
26-
test: /\.tsx$/,
19+
test: /\.tsx?$/,
2720
exclude: /node_modules/,
2821
use: [
2922
'babel-loader',
30-
'ts-loader'
23+
{
24+
loader: 'ts-loader',
25+
options: {
26+
appendTsSuffixTo: [/\.vue$/],
27+
appendTsxSuffixTo: [/\.vue$/]
28+
}
29+
}
3130
]
3231
},
3332
{
@@ -36,5 +35,8 @@ module.exports = {
3635
}
3736
]
3837
},
39-
devtool: 'source-map'
38+
devtool: 'source-map',
39+
plugins: [
40+
new VueLoaderPlugin()
41+
]
4042
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy