Skip to content

Commit

Permalink
feat: babel.config.js
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed May 12, 2020
1 parent 12fed03 commit 3a8a36b
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
let presets = ["@babel/preset-react"];

let plugins = [
// "transform-react-remove-prop-types",
// "@babel/plugin-syntax-dynamic-import",
// '@babel/plugin-proposal-object-rest-spread',
// '@babel/plugin-proposal-optional-chaining',
// '@babel/plugin-proposal-class-properties'
];

if (process.env.BABEL_ENV === "development") {
plugins.push("@babel/plugin-transform-modules-commonjs")
}

module.exports = {
presets: presets,
plugins: plugins,
exclude: "node_modules/**",
// runtimeHelpers: true,
}

0 comments on commit 3a8a36b

Please sign in to comment.