feat: expose plugins and presets on SwaggerUI global symbol (#9189)

Part of this commit is also:
- complete plugins consolidation
- complete presets consolidation
- build system consolidation

Refs #9188
This commit is contained in:
Vladimír Gorej
2023-09-05 09:56:51 +02:00
committed by GitHub
parent 8137a8b337
commit edd1153723
118 changed files with 28137 additions and 853 deletions

29
webpack/core.js Normal file
View File

@@ -0,0 +1,29 @@
/**
* @prettier
*/
const configBuilder = require("./_config-builder")
const result = configBuilder(
{
minimize: true,
mangle: true,
sourcemaps: true,
includeDependencies: false,
},
{
entry: {
"swagger-ui": ["./src/index.js"],
},
output: {
globalObject: "this",
library: {
name: "SwaggerUICore",
export: "default",
},
},
}
)
module.exports = result