Skip to content

Commit

Permalink
Simplify babel config and switch to preconstruct for the build process
Browse files Browse the repository at this point in the history
  • Loading branch information
csandman committed May 3, 2023
1 parent 067e042 commit e73fab0
Show file tree
Hide file tree
Showing 3 changed files with 1,175 additions and 229 deletions.
16 changes: 1 addition & 15 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -1,21 +1,7 @@
const { BABEL_ENV } = process.env;
const isCjs = BABEL_ENV !== undefined && BABEL_ENV === "cjs";

module.exports = {
plugins: [
"@chakra-ui/babel-plugin",
["@babel/plugin-proposal-class-properties", { loose: true }],
],
presets: [
"@babel/preset-typescript",
"@babel/preset-react",
[
"@babel/preset-env",
{
bugfixes: true,
modules: isCjs ? "commonjs" : false,
loose: true,
},
],
"@babel/preset-env",
],
};
Loading

0 comments on commit e73fab0

Please sign in to comment.