Skip to content

Commit

Permalink
Babel build
Browse files Browse the repository at this point in the history
  • Loading branch information
plesiecki committed Feb 25, 2022
1 parent 7e6e759 commit 92b6b8a
Show file tree
Hide file tree
Showing 3 changed files with 2,021 additions and 19,490 deletions.
19 changes: 6 additions & 13 deletions config/webpack.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,14 @@ const babelLoader = {
loader: "babel-loader",
options: {
presets: [
"@babel/preset-react",
"@babel/preset-typescript",
["@babel/preset-env", {
modules: false
modules: false,
}]
],
plugins: [
"@babel/plugin-proposal-class-properties"
]
}
};
Expand All @@ -49,22 +54,10 @@ module.exports = {
test: /\.js$/,
use: ["source-map-loader"]
},
{
test: /\.js?$/,
use: [
babelLoader
]
},
{
test: /\.tsx?$/,
use: [
babelLoader,
{
loader: "ts-loader",
options: {
configFile: "src/client/tsconfig.json"
}
}
]
},
{
Expand Down
Loading

0 comments on commit 92b6b8a

Please sign in to comment.