You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 8, 2020. It is now read-only.
There is a statement inside of webpack dev middleware ts: webpackConfig.entry['main'].unshift('webpack-hot-middleware/client');
Beside assuming that we have default main entry (which is not really good, but there is already TODO here), this allso assume that entry point is an array. Webpack is allow to you have this entry as a string.
Webpack ng2 starter as example have following config: entry: { 'polyfills': './src/polyfills.ts', 'vendor': './src/vendor.ts', 'main': './src/main.browser.ts' },
In this scenario you will have error:
webpackConfig.entry.main.unshift is not a function.
There is a statement inside of webpack dev middleware ts:
webpackConfig.entry['main'].unshift('webpack-hot-middleware/client');Beside assuming that we have default main entry (which is not really good, but there is already TODO here), this allso assume that entry point is an array. Webpack is allow to you have this entry as a string.
Webpack ng2 starter as example have following config:
entry: { 'polyfills': './src/polyfills.ts', 'vendor': './src/vendor.ts', 'main': './src/main.browser.ts' },In this scenario you will have error:
webpackConfig.entry.main.unshift is not a function.