Skip to content

Commit

Permalink
Eliminate the need for the ES6 module backflips in Standalone example
Browse files Browse the repository at this point in the history
  • Loading branch information
shockey committed Mar 28, 2017
1 parent bd0fbc6 commit 431b673
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,7 @@
dom_id: '#swagger-ui',
presets: [
SwaggerUIBundle.presets.apis,
// yay ES6 modules ↘
Array.isArray(SwaggerUIStandalonePreset) ? SwaggerUIStandalonePreset : SwaggerUIStandalonePreset.default
SwaggerUIStandalonePreset
],
plugins: [
SwaggerUIBundle.plugins.DownloadUrl
Expand Down
4 changes: 2 additions & 2 deletions dist/swagger-ui-standalone-preset.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/standalone/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ let preset = [
}
]

export default preset
module.exports = preset

0 comments on commit 431b673

Please # to comment.