4 ms·
Hm, I'm not sure about having to pull in a Promise polyfill to support code splitting (`require.ensure()`) in IE11... If I'm already using a promises library fr
by julenx 11y ago
Hm, I'm not sure about having to pull in a Promise polyfill to support code splitting (`require.ensure()`) in IE11... If I'm already using a promises library from X, would it be possible to somehow instruct webpack use that? Does that make sense? Am I missing something?
- stevenrossuk 11y agoYou would have to make the Promise object from your choosen promise library global before any calls to require.ensure.
- b34r 11y agoglobal.Promise = global.Promise || require('promise-pollyfill'); Something like that in your entry file.