From 470abdfea8b36bf4607eb4fd8d1af4071833085c Mon Sep 17 00:00:00 2001 From: Jon Surrell Date: Thu, 12 Sep 2024 12:57:52 +0200 Subject: [PATCH] Remove babel from script-modules build --- 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 57652e0be28e2b..18287c96d83c8a 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' ],