Skip to content

Commit

Permalink
Remove babel from script-modules build (#65279)
Browse files Browse the repository at this point in the history
Co-authored-by: sirreal <jonsurrell@git.wordpress.org>
Co-authored-by: cbravobernal <cbravobernal@git.wordpress.org>
  • Loading branch information
3 people authored Sep 12, 2024
1 parent 297e9ca commit 33bdcbc
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions tools/webpack/script-modules.js
Original file line number Diff line number Diff line change
Expand Up @@ -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' ],
Expand Down

0 comments on commit 33bdcbc

Please sign in to comment.