chore: remove unused deprecated polyfill.js file (#6345)
* config(dev): remove unused polyfills in webpack-dev
This commit is contained in:
@@ -1,12 +0,0 @@
|
|||||||
// Promise global, Used ( at least ) by 'whatwg-fetch'. And required by IE 11
|
|
||||||
|
|
||||||
import win from "core/window"
|
|
||||||
|
|
||||||
if(typeof win.Promise === "undefined") {
|
|
||||||
require("core-js/fn/promise")
|
|
||||||
}
|
|
||||||
|
|
||||||
// Required by IE 11
|
|
||||||
if(!String.prototype.startsWith) {
|
|
||||||
require("core-js/es6/string")
|
|
||||||
}
|
|
||||||
@@ -14,7 +14,6 @@ const result = configBuilder(
|
|||||||
{
|
{
|
||||||
entry: {
|
entry: {
|
||||||
"swagger-ui": [
|
"swagger-ui": [
|
||||||
// "./src/polyfills.js", // TODO: remove?
|
|
||||||
"./src/index.js",
|
"./src/index.js",
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -18,11 +18,9 @@ const devConfig = configBuilder(
|
|||||||
mode: "development",
|
mode: "development",
|
||||||
entry: {
|
entry: {
|
||||||
"swagger-ui-bundle": [
|
"swagger-ui-bundle": [
|
||||||
"./src/polyfills.js", // TODO: remove?
|
|
||||||
"./src/core/index.js",
|
"./src/core/index.js",
|
||||||
],
|
],
|
||||||
"swagger-ui-standalone-preset": [
|
"swagger-ui-standalone-preset": [
|
||||||
"./src/polyfills", // TODO: remove?
|
|
||||||
"./src/standalone/index.js",
|
"./src/standalone/index.js",
|
||||||
],
|
],
|
||||||
"swagger-ui": "./src/style/main.scss",
|
"swagger-ui": "./src/style/main.scss",
|
||||||
|
|||||||
Reference in New Issue
Block a user