Browse Source

Eliminate the need for the ES6 module backflips in Standalone example

bubble
Kyle Shockey 7 years ago
parent
commit
431b67362c
3 changed files with 4 additions and 5 deletions
  1. +1
    -2
      dist/index.html
  2. +2
    -2
      dist/swagger-ui-standalone-preset.js
  3. +1
    -1
      src/standalone/index.js

+ 1
- 2
dist/index.html 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


+ 2
- 2
dist/swagger-ui-standalone-preset.js
File diff suppressed because it is too large
View File


+ 1
- 1
src/standalone/index.js View File

@@ -14,4 +14,4 @@ let preset = [
}
]

export default preset
module.exports = preset

Loading…
Cancel
Save