javascript - Replacing native Promise with bluebird-implementation using webpack -
i'm trying replace occurrences of native promise-calls bluebird. however, no matter write in provide-plugin, ie11 complain cannot find promise (in vendor.js).
i have following mapping:
new webpack.provideplugin({ 'promise': 'bluebird', 'window.promise': 'bluebird', 'global.promise': 'bluebird', // not needed }), i tried out use imports-loader , exports-loader such as:
'promise': 'imports-loader?this=>global!exports-loader?global.promise!bluebird' however, fallback native promises in chrome/firefox/edge , not use bluebird here.
do miss something? have include bluebird-dependency in html-file working ie11?
can use imports-loader/exports-loader syntax not fallback bluebird use in general instead of promise?
edit: looks webpack using promises. somehow seems promise-polyfill kicks in late (webpack requiring working promise).
Comments
Post a Comment