From efb361bb56a3fdd6cb98dc3e90e1dea79a27dd3f Mon Sep 17 00:00:00 2001 From: Yulong Ruan Date: Thu, 28 Dec 2023 01:13:36 +0800 Subject: [PATCH] fix build error due to missing babel plugins (#661) Signed-off-by: Yulong Ruan --- babel.config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/babel.config.js b/babel.config.js index 0bd5b917..a3c59564 100644 --- a/babel.config.js +++ b/babel.config.js @@ -16,8 +16,8 @@ module.exports = { require('@babel/preset-typescript'), ], plugins: [ - require('@babel/plugin-proposal-class-properties'), - require('@babel/plugin-proposal-object-rest-spread'), + require('@babel/plugin-transform-class-properties'), + require('@babel/plugin-transform-object-rest-spread'), ['@babel/plugin-transform-modules-commonjs', { allowTopLevelThis: true }], [require('@babel/plugin-transform-runtime'), { regenerator: true }], ],