From 1cf3e41baf8683caaa8ad858d073fdd0a3d2120a Mon Sep 17 00:00:00 2001 From: Pontus Wallberg Date: Thu, 6 Aug 2020 09:45:00 +0200 Subject: [PATCH] change globalObject to "this" --- webpack/bundle.babel.js | 1 + webpack/core.babel.js | 1 + webpack/standalone.babel.js | 1 + 3 files changed, 3 insertions(+) diff --git a/webpack/bundle.babel.js b/webpack/bundle.babel.js index 419e2f80294..35ddeb9e1db 100644 --- a/webpack/bundle.babel.js +++ b/webpack/bundle.babel.js @@ -21,6 +21,7 @@ const result = configBuilder( ], }, output: { + globalObject: "this", library: "SwaggerUIBundle", }, plugins: [ diff --git a/webpack/core.babel.js b/webpack/core.babel.js index 1b4ccdde044..f273279c15d 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", }, }