aboutsummaryrefslogtreecommitdiff
path: root/FrontEnd/webpack.common.js
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2021-06-03 15:00:26 +0800
committercrupest <crupest@outlook.com>2021-06-03 15:00:26 +0800
commit009d49e5b5cf7f7568e4b17961aa11b36d589a90 (patch)
tree7f28d980b8aa74c6159cf6c5b08941d93d49c30e /FrontEnd/webpack.common.js
parent125c77d974c90b547ec3f89e71ad6420f1668fd3 (diff)
downloadtimeline-009d49e5b5cf7f7568e4b17961aa11b36d589a90.tar.gz
timeline-009d49e5b5cf7f7568e4b17961aa11b36d589a90.tar.bz2
timeline-009d49e5b5cf7f7568e4b17961aa11b36d589a90.zip
build: Good bye babel!
Diffstat (limited to 'FrontEnd/webpack.common.js')
-rw-r--r--FrontEnd/webpack.common.js16
1 files changed, 2 insertions, 14 deletions
diff --git a/FrontEnd/webpack.common.js b/FrontEnd/webpack.common.js
index e957a399..94cdf694 100644
--- a/FrontEnd/webpack.common.js
+++ b/FrontEnd/webpack.common.js
@@ -7,27 +7,15 @@ const config = new Config();
config.entry("index").add(path.resolve(__dirname, "src/app/index.tsx"));
config.module
- .rule("ts")
- .test(/\.ts(x?)$/)
+ .rule("jsts")
+ .test(/\.[jt]sx?$/)
.exclude.add(/node_modules/)
.end()
- .use("babel")
- .loader("babel-loader")
- .end()
.use("ts")
.loader("ts-loader")
.end();
config.module
- .rule("js")
- .test(/\.js(x?)$/)
- .exclude.add(/node_modules/)
- .end()
- .use("babel")
- .loader("babel-loader")
- .end();
-
-config.module
.rule("css")
.test(/\.css$/)
.use("css")