This is needed for whatwg-fetch + IE11. An alternative is to include "node_modules/whatwg-fetch" in the transform-runtime. But my guess is that someone is likely going to add a lib that in turn uses Promises, without adding it to the whitelist. This is safter.
31 lines
609 B
JavaScript
31 lines
609 B
JavaScript
var path = require('path')
|
|
|
|
|
|
module.exports = require('./make-webpack-config.js')({
|
|
_special: {
|
|
separateStylesheets: false,
|
|
minimize: true,
|
|
sourcemaps: true,
|
|
loaders: {
|
|
"worker.js": ["worker-loader?inline=true&name=[name].js", "babel"]
|
|
}
|
|
},
|
|
|
|
entry: {
|
|
'swagger-ui-standalone-preset': [
|
|
'./src/polyfills',
|
|
'./src/standalone/index.js'
|
|
]
|
|
},
|
|
|
|
output: {
|
|
path: path.join(__dirname, "dist"),
|
|
publicPath: "/dist",
|
|
library: "SwaggerUIStandalonePreset",
|
|
libraryTarget: "umd",
|
|
filename: "[name].js",
|
|
chunkFilename: "js/[name].js",
|
|
},
|
|
|
|
})
|