Skip to content

Commit

Permalink
Babel only build
Browse files Browse the repository at this point in the history
  • Loading branch information
plesiecki committed Mar 1, 2022
1 parent 370a088 commit 8689f67
Show file tree
Hide file tree
Showing 4 changed files with 2,147 additions and 19,423 deletions.
21 changes: 14 additions & 7 deletions config/webpack.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,23 @@ const MiniCssExtractPlugin = require("mini-css-extract-plugin");
const babelLoader = {
loader: "babel-loader",
options: {
passPerPreset: true,
presets: [
"@babel/preset-typescript",
["@babel/preset-env", {
modules: false
modules: false,
targets: {
esmodules: true,
},
bugfixes: true,
}],
["@babel/preset-react", {
development: false,
useBuiltIns: true,
}]
],
plugins: [
"@babel/plugin-proposal-class-properties"
]
}
};
Expand Down Expand Up @@ -59,12 +72,6 @@ module.exports = {
test: /\.tsx?$/,
use: [
babelLoader,
{
loader: "ts-loader",
options: {
configFile: "src/client/tsconfig.json"
}
}
]
},
{
Expand Down
Loading

0 comments on commit 8689f67

Please sign in to comment.