diff --git a/babel.config.js b/babel.config.js deleted file mode 100644 index 47a09b451..000000000 --- a/babel.config.js +++ /dev/null @@ -1,16 +0,0 @@ -/* - * Copyright OpenSearch Contributors - * SPDX-License-Identifier: Apache-2.0 - */ - -// babelrc doesn't respect NODE_PATH anymore but using require does. -// Alternative to install them locally in node_modules -module.exports = { - presets: [require("@babel/preset-env"), require("@babel/preset-react"), require("@babel/preset-typescript")], - plugins: [ - [require("@babel/plugin-transform-runtime"), { regenerator: true }], - require("@babel/plugin-proposal-class-properties"), - require("@babel/plugin-proposal-object-rest-spread"), - [require("@babel/plugin-transform-modules-commonjs"), { allowTopLevelThis: true }], - ], -};