Skip to content

Commit 83cef90

Browse files
committed
breaking: Extend babel config from @patternslib/dev.
1 parent 125a4f7 commit 83cef90

File tree

1 file changed

+1
-34
lines changed

1 file changed

+1
-34
lines changed

babel.config.js

+1-34
Original file line numberDiff line numberDiff line change
@@ -1,34 +1 @@
1-
module.exports = (env) => {
2-
let config = {
3-
presets: [
4-
[
5-
"@babel/preset-env",
6-
{
7-
useBuiltIns: "entry",
8-
corejs: 3,
9-
},
10-
],
11-
],
12-
};
13-
14-
// passed via NODE_ENV=development environment variable.
15-
if (env.env() === "development") {
16-
// For development, do less transformations for better readability.
17-
config = {
18-
presets: [
19-
[
20-
"@babel/preset-env",
21-
{
22-
modules: false,
23-
debug: true,
24-
useBuiltIns: false,
25-
targets: "last 1 Chrome version, last 1 Firefox version",
26-
},
27-
],
28-
],
29-
plugins: ["@babel/plugin-proposal-optional-chaining"],
30-
};
31-
}
32-
33-
return config;
34-
};
1+
module.exports = require("@patternslib/dev/babel.config.js");

0 commit comments

Comments
 (0)