I am using Webpack 2 with import()
but in IE 11 I got error
Dynamic page loading failed ReferenceError: 'Promise' is undefined
though I am using bluebird to polyfill Promises
in client of my React application with babel-preset-bluebird
{
test: /\.jsx?$/,
exclude: [/node_modules/, /
use: {
loader: "babel-loader",
query: {
presets: [['es2015', { modules: false }], 'react', 'stage-2', 'stage-3', 'bluebird'],
plugins: ['transform-runtime', 'lodash']
}
}
}
how can I fix lazy loading with import()
in IE 11?
Thanks in advance!