Merge pull request #2811 from shockey/ft/default-export-standalone

standalone default export
This commit is contained in:
shockey
2017-03-27 20:01:18 -07:00
committed by GitHub
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',
presets: [
SwaggerUIBundle.presets.apis,
// yay ES6 modules ↘
Array.isArray(SwaggerUIStandalonePreset) ? SwaggerUIStandalonePreset : SwaggerUIStandalonePreset.default
SwaggerUIStandalonePreset
],
plugins: [
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