Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordizzy <diosmosis@users.noreply.github.com>2022-01-17 11:53:21 +0300
committerGitHub <noreply@github.com>2022-01-17 11:53:21 +0300
commit874ebd3098acefe02493ac0095ec5fe156f420fb (patch)
treea03c6c7493e9c71ade77095d4df9efd2340e5dc8 /babel.config.js
parenta0cc5e9400e7661ad4f865ae31d9993dc247283f (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.js6
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 }],
+ ],
};