mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 13:45:18 +00:00
chore: drop eventsource-polyfill for IE support
This commit is contained in:
parent
08e0f71946
commit
8718bf32e3
@ -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())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user