Eliminate the need for the ES6 module backflips in Standalone example
This commit is contained in:
3
dist/index.html
vendored
3
dist/index.html
vendored
@@ -77,8 +77,7 @@ window.onload = function() {
|
|||||||
dom_id: '#swagger-ui',
|
dom_id: '#swagger-ui',
|
||||||
presets: [
|
presets: [
|
||||||
SwaggerUIBundle.presets.apis,
|
SwaggerUIBundle.presets.apis,
|
||||||
// yay ES6 modules ↘
|
SwaggerUIStandalonePreset
|
||||||
Array.isArray(SwaggerUIStandalonePreset) ? SwaggerUIStandalonePreset : SwaggerUIStandalonePreset.default
|
|
||||||
],
|
],
|
||||||
plugins: [
|
plugins: [
|
||||||
SwaggerUIBundle.plugins.DownloadUrl
|
SwaggerUIBundle.plugins.DownloadUrl
|
||||||
|
|||||||
4
dist/swagger-ui-standalone-preset.js
vendored
4
dist/swagger-ui-standalone-preset.js
vendored
File diff suppressed because one or more lines are too long
@@ -14,4 +14,4 @@ let preset = [
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
||||||
export default preset
|
module.exports = preset
|
||||||
|
|||||||
Reference in New Issue
Block a user