mirror of
https://github.com/youzan/vant.git
synced 2025-10-19 18:14:13 +00:00
[build] add typescript compiler (#2697)
This commit is contained in:
@@ -30,7 +30,7 @@ module.exports = {
|
||||
}
|
||||
},
|
||||
resolve: {
|
||||
extensions: ['.js', '.vue', '.css'],
|
||||
extensions: ['.js', '.ts', '.tsx', '.vue', '.css'],
|
||||
alias: {
|
||||
packages: path.join(__dirname, '../packages')
|
||||
}
|
||||
@@ -51,7 +51,7 @@ module.exports = {
|
||||
]
|
||||
},
|
||||
{
|
||||
test: /\.js$/,
|
||||
test: /\.(js|ts|tsx)$/,
|
||||
exclude: /node_modules/,
|
||||
use: 'babel-loader'
|
||||
},
|
||||
|
Reference in New Issue
Block a user