Skip to content

Commit 4d46255

Browse files
committed
Re-add @babel/preset-env but target Safari 12 explicitly
1 parent 005a408 commit 4d46255

File tree

3 files changed

+1204
-81
lines changed

3 files changed

+1204
-81
lines changed

babel.config.js

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
module.exports = {
2-
plugins: [
3-
"@babel/plugin-transform-nullish-coalescing-operator",
4-
"@babel/plugin-transform-optional-chaining",
2+
presets: [
3+
"@babel/preset-typescript",
4+
[
5+
"@babel/preset-env",
6+
{
7+
targets: {
8+
safari: "12",
9+
},
10+
},
11+
],
512
],
6-
presets: ["@babel/preset-typescript"],
713
};

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@
4343
"@babel/runtime": "^7.12.5"
4444
},
4545
"devDependencies": {
46-
"@babel/plugin-transform-nullish-coalescing-operator": "^7.22.5",
47-
"@babel/plugin-transform-optional-chaining": "^7.22.5",
46+
"@babel/preset-env": "^7.22.5",
4847
"@babel/preset-typescript": "^7.21.5",
4948
"@preconstruct/cli": "^2.7.0",
5049
"@types/jest": "^26.0.15",

0 commit comments

Comments
 (0)