v3.0.0 can't provide in webpack
Closed this issue · 2 comments
gblok commented
new ProvidePlugin({Promise: 'zousan'})
should work?
~v2.3.3 worked
gblok commented
still working new ProvidePlugin({Promise: ['zousan', 'default']})
bluejava commented
Good catch @gblok . Digging into the webpack docs (https://webpack.js.org/plugins/provide-plugin/) I did find this, which concurs with your solution:
For importing the default export of an ES2015 module, you have to specify the default property of module.
Thanks for reporting back that it worked!