chore: drop eventsource-polyfill for IE support

This commit is contained in:
pooya parsa 2020-10-29 18:35:14 +01:00
parent 08e0f71946
commit 8718bf32e3

View File

@ -65,13 +65,10 @@ function clientHMR (ctx: WebpackConfigContext) {
// Add HMR support // Add HMR support
const app = (config.entry as any).app as any const app = (config.entry as any).app as any
app.unshift( app.unshift(
// https://github.com/webpack-contrib/webpack-hot-middleware/issues/53#issuecomment-162823945
'eventsource-polyfill',
// https://github.com/glenjamin/webpack-hot-middleware#config // https://github.com/glenjamin/webpack-hot-middleware#config
`webpack-hot-middleware/client?${hotMiddlewareClientOptionsStr}` `webpack-hot-middleware/client?${hotMiddlewareClientOptionsStr}`
) )
// TODO: webpackHotUpdate is not defined: https://github.com/webpack/webpack/issues/6693
config.plugins.push(new webpack.HotModuleReplacementPlugin()) config.plugins.push(new webpack.HotModuleReplacementPlugin())
} }