diff --git a/webpack/bundle.babel.js b/webpack/bundle.babel.js index 04c7ceb8ffa..81d60b1f393 100644 --- a/webpack/bundle.babel.js +++ b/webpack/bundle.babel.js @@ -29,6 +29,7 @@ const result = configBuilder( ], }, output: { + globalObject: "this", library: "SwaggerUIBundle", }, plugins: [ diff --git a/webpack/core.babel.js b/webpack/core.babel.js index b9c2a5a7b01..df2e1adf780 100644 --- a/webpack/core.babel.js +++ b/webpack/core.babel.js @@ -20,6 +20,7 @@ const result = configBuilder( }, output: { + globalObject: "this", library: "SwaggerUICore", }, } diff --git a/webpack/standalone.babel.js b/webpack/standalone.babel.js index 354b1355648..2b79a6cbd65 100644 --- a/webpack/standalone.babel.js +++ b/webpack/standalone.babel.js @@ -16,6 +16,7 @@ const result = configBuilder( }, output: { + globalObject: "this", library: "SwaggerUIStandalonePreset", }, }