Skip to content

Commit 323b5ff

Browse files
committed
chore: add @babel/plugin-transform-object-rest-spread
1 parent e177a5c commit 323b5ff

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
"@babel/plugin-proposal-optional-chaining": "7.21.0",
4242
"@babel/plugin-syntax-dynamic-import": "7.8.3",
4343
"@babel/plugin-syntax-object-rest-spread": "7.8.3",
44+
"@babel/plugin-transform-object-rest-spread": "7.24.6",
4445
"@babel/plugin-transform-runtime": "7.24.6",
4546
"@babel/preset-env": "7.24.6",
4647
"@babel/preset-react": "7.24.6",

scripts/babel/src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ module.exports = (/** @type {ConfigAPI} */ api) => {
4242
const plugins = [
4343
['@babel/plugin-proposal-class-properties', { loose: true }],
4444
['@babel/plugin-proposal-nullish-coalescing-operator', { loose: true }],
45-
['@babel/plugin-proposal-object-rest-spread', { loose: true, useBuiltIns: true }],
45+
['@babel/plugin-transform-object-rest-spread', { loose: true, useBuiltIns: true }],
4646
['@babel/plugin-proposal-optional-chaining', { loose: true }],
4747
'@babel/plugin-syntax-dynamic-import',
4848
['@babel/plugin-transform-runtime', { useESModules }],

yarn.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1022,7 +1022,7 @@
10221022
"@babel/helper-plugin-utils" "^7.24.6"
10231023
"@babel/plugin-syntax-numeric-separator" "^7.10.4"
10241024

1025-
"@babel/plugin-transform-object-rest-spread@^7.24.6":
1025+
"@babel/plugin-transform-object-rest-spread@7.24.6", "@babel/plugin-transform-object-rest-spread@^7.24.6":
10261026
version "7.24.6"
10271027
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-object-rest-spread/-/plugin-transform-object-rest-spread-7.24.6.tgz#68d763f69955f9e599c405c6c876f5be46b47d8a"
10281028
integrity sha512-OKmi5wiMoRW5Smttne7BwHM8s/fb5JFs+bVGNSeHWzwZkWXWValR1M30jyXo1s/RaqgwwhEC62u4rFH/FBcBPg==

0 commit comments

Comments
 (0)