Это сработало для меня! И это работает в IE11. Не знаю, что другие комментаторы делают не так. Вот пример моего кода:
const polyfills = [] if (!window.fetch) { polyfills.push(import(/* webpackChunkName: "polyfill-fetch" */ 'whatwg-fetch')) } if (!window.Symbol) { // the kitchen sink polyfills.push(import(/* webpackChunkName: "polyfill-core-js" */ 'core-js')) } else { // just the ES7 modules we use: if (!Array.prototype.includes) { polyfills.push( import(/* webpackChunkName: "polyfill-array.includes" */ 'core-js/modules/es7.array.includes.js') ) } if (!Object.entries) { polyfills.push( import(/* webpackChunkName: "polyfill-object.entries" */ 'core-js/modules/es7.object.entries.js') ) } } if (window.NodeList && !NodeList.prototype.forEach) { NodeList.prototype.forEach = Array.prototype.forEach } Promise.all(polyfills) .then(() => import(/* webpackChunkName: "app" */ './app')) .catch(error => { console.error('Failed fetching polyfills', error) })