Merge pull request #9370 from backstage/rugvip/iife

cli: wrap minified code in iife
This commit is contained in:
Ben Lambert
2022-02-05 19:52:35 +01:00
committed by GitHub
2 changed files with 6 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/cli': patch
---
Tweaked frontend bundling configuration to avoid leaking declarations into global scope.
@@ -29,6 +29,7 @@ export const optimization = (
minimizer: [
new ESBuildMinifyPlugin({
target: 'es2019',
format: 'iife',
}),
],
runtimeChunk: 'single',