Skip to content

Commit 431b673

Browse files
committed
Eliminate the need for the ES6 module backflips in Standalone example
1 parent bd0fbc6 commit 431b673

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

dist/index.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,7 @@
7777
dom_id: '#swagger-ui',
7878
presets: [
7979
SwaggerUIBundle.presets.apis,
80-
// yay ES6 modules ↘
81-
Array.isArray(SwaggerUIStandalonePreset) ? SwaggerUIStandalonePreset : SwaggerUIStandalonePreset.default
80+
SwaggerUIStandalonePreset
8281
],
8382
plugins: [
8483
SwaggerUIBundle.plugins.DownloadUrl

dist/swagger-ui-standalone-preset.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/standalone/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ let preset = [
1414
}
1515
]
1616

17-
export default preset
17+
module.exports = preset

0 commit comments

Comments
 (0)