aboutsummaryrefslogtreecommitdiffstats
path: root/webpack.common.js
diff options
context:
space:
mode:
Diffstat (limited to 'webpack.common.js')
-rw-r--r--webpack.common.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/webpack.common.js b/webpack.common.js
index d1a07e10800..871218b8fa9 100644
--- a/webpack.common.js
+++ b/webpack.common.js
@@ -85,6 +85,11 @@ module.exports = {
]),
},
{
+ test: /\.tsx?$/,
+ use: 'babel-loader',
+ exclude: BabelLoaderExcludeNodeModulesExcept([]),
+ },
+ {
test: /\.js$/,
loader: 'babel-loader',
// automatically detect necessary packages to
@@ -163,7 +168,7 @@ module.exports = {
// make sure to use the handlebar runtime when importing
handlebars: 'handlebars/runtime',
},
- extensions: ['*', '.js', '.vue'],
+ extensions: ['*', '.ts', '.js', '.vue'],
symlinks: true,
fallback: {
buffer: require.resolve('buffer'),