We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d0ed5d commit a05f740Copy full SHA for a05f740
.babelrc
.babelrc.js
@@ -0,0 +1,18 @@
1
+const { NODE_ENV } = process.env;
2
+
3
+const presets = [
4
+ "@babel/preset-env",
5
+ "@babel/preset-react",
6
+];
7
+const plugins = [
8
+ "@babel/plugin-proposal-object-rest-spread",
9
+ "@babel/plugin-proposal-class-properties",
10
+ "@babel/plugin-transform-react-jsx"
11
12
13
14
+if (NODE_ENV === "production") {
15
+ plugins.push("transform-react-remove-prop-types");
16
+}
17
18
+module.exports = { presets, plugins };
0 commit comments