diff --git a/packages/scripts/config/webpack.config.js b/packages/scripts/config/webpack.config.js index 0a6b756c30dc33..4ee428b41ead25 100644 --- a/packages/scripts/config/webpack.config.js +++ b/packages/scripts/config/webpack.config.js @@ -121,6 +121,9 @@ const config = { compress: { passes: 2, }, + mangle: { + reserved: [ '__', '_n', '_nx', '_x' ], + }, }, extractComments: false, } ), diff --git a/webpack.config.js b/webpack.config.js index de8be6fab09e98..4a553dab1af78e 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -81,6 +81,9 @@ module.exports = { compress: { passes: 2, }, + mangle: { + reserved: [ '__', '_n', '_nx', '_x' ], + }, }, extractComments: false, } ),