From 33bdcbc97e4839e9bf69d01046f99b1490b28f66 Mon Sep 17 00:00:00 2001 From: Jon Surrell Date: Thu, 12 Sep 2024 13:36:59 +0200 Subject: [PATCH] Remove babel from script-modules build (#65279) Co-authored-by: sirreal Co-authored-by: cbravobernal --- tools/webpack/script-modules.js | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/tools/webpack/script-modules.js b/tools/webpack/script-modules.js index 57652e0be28e2..18287c96d83c8 100644 --- a/tools/webpack/script-modules.js +++ b/tools/webpack/script-modules.js @@ -102,29 +102,6 @@ module.exports = { resolve: { extensions: [ '.js', '.ts', '.tsx' ], }, - module: { - rules: [ - { - test: /\.(j|t)sx?$/, - exclude: /node_modules/, - use: [ - { - loader: require.resolve( 'babel-loader' ), - options: { - cacheDirectory: - process.env.BABEL_CACHE_DIRECTORY || true, - babelrc: false, - configFile: false, - presets: [ - '@babel/preset-typescript', - '@babel/preset-react', - ], - }, - }, - ], - }, - ], - }, plugins: [ ...plugins, new DependencyExtractionWebpackPlugin() ], watchOptions: { ignored: [ '**/node_modules' ],