cli: wrap minified code in iife

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2022-02-05 10:42:38 +01:00
parent bbd59ed355
commit 63181dee79
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',