Eliminate the need for the ES6 module backflips in Standalone example

This commit is contained in:
Kyle Shockey
2017-03-27 19:51:45 -07:00
parent bd0fbc60dd
commit 431b67362c
3 changed files with 4 additions and 5 deletions

3
dist/index.html vendored
View File

@@ -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

File diff suppressed because one or more lines are too long

View File

@@ -14,4 +14,4 @@ let preset = [
} }
] ]
export default preset module.exports = preset