Skip to content

Commit f1be25b

Browse files
committed
Add babel-polyfill for older IE support (ping swagger-api#2762)
1 parent f653591 commit f1be25b

7 files changed

+14
-9
lines changed

dist/swagger-ui.js

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

dist/swagger-ui.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
"just-test-in-node": "mocha --recursive --compilers js:babel-core/register test/core test/components"
3636
},
3737
"dependencies": {
38+
"babel-polyfill": "^6.23.0",
3839
"brace": "0.7.0",
3940
"btoa": "^1.1.2",
4041
"debounce": "1.0.0",

webpack-dist-bundle.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ module.exports = require('./make-webpack-config.js')({
1313

1414
entry: {
1515
'swagger-ui-bundle': [
16+
'babel-polyfill',
1617
'./src/core/index.js'
1718
]
1819
},

webpack-dist-standalone.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ module.exports = require('./make-webpack-config.js')({
1313

1414
entry: {
1515
'swagger-ui-standalone-preset': [
16+
'babel-polyfill',
1617
'./src/standalone/index.js'
1718
]
1819
},

webpack-dist.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ module.exports = require('./make-webpack-config.js')({
1515

1616
entry: {
1717
"swagger-ui": [
18+
'babel-polyfill',
1819
'./src/style/main.scss',
1920
'./src/core/index.js'
2021
]

webpack-hot-dev-server.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ module.exports = require("./make-webpack-config")({
1010
devtool: "eval",
1111
entry: {
1212
'SwaggerUIBundle': [
13+
'babel-polyfill',
1314
'./src/core/index.js'
1415
],
1516
'SwaggerUIStandalonePreset': [

0 commit comments

Comments
 (0)