From c5037452e24454a5e9cfc83e30f7fbdfabec4a7d Mon Sep 17 00:00:00 2001 From: "opensearch-trigger-bot[bot]" <98922864+opensearch-trigger-bot[bot]@users.noreply.github.com> Date: Wed, 27 Dec 2023 09:22:02 -0800 Subject: [PATCH] fix build error due to missing babel plugins (#661) (#664) Signed-off-by: Yulong Ruan (cherry picked from commit efb361bb56a3fdd6cb98dc3e90e1dea79a27dd3f) Co-authored-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 }], ],