aboutsummaryrefslogtreecommitdiff
path: root/webpack.config.js
diff options
context:
space:
mode:
Diffstat (limited to 'webpack.config.js')
-rw-r--r--webpack.config.js14
1 files changed, 9 insertions, 5 deletions
diff --git a/webpack.config.js b/webpack.config.js
index d9c60cc..a845375 100644
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -20,12 +20,16 @@ config = {
module: {
rules: [
{
- test: [ /\.js$/, /\.jsx$/ ],
+ test: [ /\.js$/, /\.jsx$/, /\.ts$/, /\.tsx$/],
exclude: /node_modules/,
loader: 'babel-loader',
- query: {
- presets: ['@babel/react']
- }
+ options: {
+ presets: [
+ { plugins: ['@babel/plugin-proposal-class-properties'] },
+ '@babel/react',
+ '@babel/preset-typescript'
+ ]
+ },
},
{
test: /\.css$/,
@@ -39,7 +43,7 @@ config = {
},
resolve: {
- extensions: [ '.js', '.jsx' ],
+ extensions: [ '.js', '.jsx', '.ts', '.tsx' ],
modules: [path.join(__dirname, 'src'), 'node_modules']
},