Skip to content

Commit d521b8c

Browse files
authored
build: change globalObject to "this" for es bundles (#6301)
1 parent d0ae61f commit d521b8c

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

webpack/es-bundle-core.babel.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ const result = configBuilder(
2929
],
3030
},
3131
output: {
32+
globalObject: "this",
3233
library: "SwaggerUIBundle",
3334
libraryTarget: "commonjs2",
3435
},

webpack/es-bundle.babel.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ const result = configBuilder(
2929
],
3030
},
3131
output: {
32+
globalObject: "this",
3233
library: "SwaggerUIBundle",
3334
libraryTarget: "commonjs2",
3435
},

0 commit comments

Comments
 (0)