packaging: fix swagger-ui-dist entry point
Entry point was missing. This change allows importing SwaggerUIBundle and SwaggerUIStandalonePreset directly from package. Correct entry point is also needed for module bundlers like webpack to perform tree-shaking.
This commit is contained in:
committed by
Kyle Shockey
parent
41d8089d0e
commit
b23c999d01
2
swagger-ui-dist-package/index.js
Normal file
2
swagger-ui-dist-package/index.js
Normal file
@@ -0,0 +1,2 @@
|
||||
module.exports.SwaggerUIBundle = require('./swagger-ui-bundle.js')
|
||||
module.exports.SwaggerUIStandalonePreset = require('./swagger-ui-standalone-preset.js')
|
||||
Reference in New Issue
Block a user