From 685cd920696ded2a5fe554168bee87b81b79cd66 Mon Sep 17 00:00:00 2001 From: briri Date: Tue, 5 Jul 2022 16:28:16 -0700 Subject: [PATCH] added some config setting for babel to deal with warning messages when compiling assets --- babel.config.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/babel.config.js b/babel.config.js index 12f98da5af..61a89d08ea 100644 --- a/babel.config.js +++ b/babel.config.js @@ -41,12 +41,24 @@ module.exports = function(api) { '@babel/plugin-syntax-dynamic-import', isTestEnv && 'babel-plugin-dynamic-import-node', '@babel/plugin-transform-destructuring', + [ + '@babel/plugin-proposal-private-methods', + { + loose: true + } + ], [ '@babel/plugin-proposal-class-properties', { loose: true } ], + [ + '@babel/plugin-proposal-private-property-in-object', + { + loose: true + } + ], [ '@babel/plugin-proposal-object-rest-spread', {