[build] add typescript compiler (#2697)

This commit is contained in:
neverland
2019-02-07 10:43:36 +08:00
committed by GitHub
parent 3e0ac872c8
commit 0fb1083b68
11 changed files with 85 additions and 16 deletions

View File

@@ -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'
},