Skip to content

Commit 11be8c5

Browse files
committed
fix babel-env browserslist
1 parent 8a376aa commit 11be8c5

File tree

5 files changed

+1312
-1706
lines changed

5 files changed

+1312
-1706
lines changed

babel.config.js

+7-1
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,16 @@ module.exports = {
44
[
55
'@babel/preset-env',
66
{
7+
include: [
8+
'@babel/plugin-proposal-optional-chaining',
9+
'@babel/plugin-proposal-nullish-coalescing-operator',
10+
'@babel/plugin-proposal-numeric-separator',
11+
'@babel/plugin-proposal-logical-assignment-operators',
12+
],
713
bugfixes: true,
814
loose: true,
915
modules: false,
10-
targets: '> 0.25%, not dead, not ie 11, not op_mini all',
16+
targets: '> 1%, not dead, not ie 11, not op_mini all',
1117
},
1218
],
1319
'@babel/preset-react',

example/package.json

+12-12
Original file line numberDiff line numberDiff line change
@@ -7,26 +7,26 @@
77
"serve": "vite preview"
88
},
99
"dependencies": {
10-
"@react-spring/core": "^9.1.2",
11-
"@react-spring/three": "^9.1.2",
12-
"@react-three/drei": "^4.3.3",
10+
"@react-spring/core": "^9.2.4",
11+
"@react-spring/three": "^9.2.4",
12+
"@react-three/drei": "^7.2.1",
1313
"lodash-es": "^4.17.21",
1414
"react": "^17.0.2",
1515
"react-dom": "^17.0.2",
1616
"react-merge-refs": "^1.1.0",
1717
"react-router-dom": "^5.2.0",
1818
"@use-gesture/react": "latest",
1919
"styled-components": "^5.3.0",
20-
"three-stdlib": "^2.0.3",
21-
"use-error-boundary": "^2.0.4",
22-
"zustand": "^3.5.1"
20+
"three-stdlib": "^2.3.1",
21+
"use-error-boundary": "^2.0.6",
22+
"zustand": "^3.5.7"
2323
},
2424
"devDependencies": {
25-
"@types/react": "^17.0.5",
26-
"@types/react-router-dom": "^5.1.7",
27-
"@types/styled-components": "^5.1.9",
28-
"@vitejs/plugin-react-refresh": "^1.3.3",
29-
"typescript": "^4.2.4",
30-
"vite": "^2.3.2"
25+
"@types/react": "^17.0.14",
26+
"@types/react-router-dom": "^5.1.8",
27+
"@types/styled-components": "^5.1.11",
28+
"@vitejs/plugin-react-refresh": "^1.3.5",
29+
"typescript": "^4.3.5",
30+
"vite": "^2.4.3"
3131
}
3232
}

0 commit comments

Comments
 (0)