diff --git a/tools/webpack/script-modules.js b/tools/webpack/script-modules.js index 592a06116ed0f0..021f11f5f5ed95 100644 --- a/tools/webpack/script-modules.js +++ b/tools/webpack/script-modules.js @@ -89,9 +89,7 @@ module.exports = { }, output: { devtoolNamespace: 'wp', - filename: `[name]${ - baseConfig.mode === 'production' ? '.min' : '' - }.js`, + filename: '[name].min.js', library: { type: 'module', },