diff options
author | dizzy <diosmosis@users.noreply.github.com> | 2022-01-17 11:53:21 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-17 11:53:21 +0300 |
commit | 874ebd3098acefe02493ac0095ec5fe156f420fb (patch) | |
tree | a03c6c7493e9c71ade77095d4df9efd2340e5dc8 /babel.config.js | |
parent | a0cc5e9400e7661ad4f865ae31d9993dc247283f (diff) |
[Vue] add fromEntries polyfill and fix spread operator compiling (#18630)
* use object.assign for object spread so it will work in older browsers
* include fromEntries polyfill
* rebuild
* rebuild polyfills
Diffstat (limited to 'babel.config.js')
-rw-r--r-- | babel.config.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/babel.config.js b/babel.config.js index 7740908849..df1ab7a9e1 100644 --- a/babel.config.js +++ b/babel.config.js @@ -1,4 +1,7 @@ module.exports = { + assumptions: { + setSpreadProperties: true, + }, presets: [ ['@vue/cli-plugin-babel/preset', { useBuiltIns: false, @@ -16,4 +19,7 @@ module.exports = { ] }], ], + plugins: [ + ['@babel/plugin-proposal-object-rest-spread', { useBuiltIns: true }], + ], }; |