build: change globalObject to "this" for es bundles (#6301)

This commit is contained in:
Tim Lai
2020-08-14 11:10:27 -07:00
committed by GitHub
parent d0ae61f8c9
commit d521b8c5b1
2 changed files with 2 additions and 0 deletions

View File

@@ -29,6 +29,7 @@ const result = configBuilder(
],
},
output: {
globalObject: "this",
library: "SwaggerUIBundle",
libraryTarget: "commonjs2",
},

View File

@@ -29,6 +29,7 @@ const result = configBuilder(
],
},
output: {
globalObject: "this",
library: "SwaggerUIBundle",
libraryTarget: "commonjs2",
},