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.
42 lines
811 B
JavaScript
42 lines
811 B
JavaScript
var path = require('path')
|
|
|
|
module.exports = require("./make-webpack-config")({
|
|
_special: {
|
|
loaders: {
|
|
'jsx': [ "react-hot-loader", "babel" ]
|
|
},
|
|
separateStylesheets: false,
|
|
},
|
|
devtool: "eval",
|
|
entry: {
|
|
'swagger-ui-bundle': [
|
|
'./src/polyfills',
|
|
'./src/core/index.js'
|
|
],
|
|
'swagger-ui-standalone-preset': [
|
|
'webpack/hot/dev-server',
|
|
'./src/polyfills',
|
|
'./src/standalone/index.js',
|
|
]
|
|
},
|
|
output: {
|
|
pathinfo: true,
|
|
debug: true,
|
|
filename: '[name].js',
|
|
library: "[name]",
|
|
libraryTarget: "umd",
|
|
chunkFilename: "[id].js"
|
|
},
|
|
devServer: {
|
|
port: 3200,
|
|
path: path.join(__dirname, 'dev-helpers'),
|
|
publicPath: "/",
|
|
noInfo: true,
|
|
colors: true,
|
|
hot: true,
|
|
stats: {
|
|
colors: true
|
|
},
|
|
},
|
|
})
|