bluejava / zousan

A Lightning Fast, Yet Very Small Promise A+ Compliant Implementation
MIT License
127 stars 13 forks source link

v3.0.0 can't provide in webpack #16

Closed gblok closed 5 years ago

gblok commented 5 years ago

new ProvidePlugin({Promise: 'zousan'}) should work? ~v2.3.3 worked

gblok commented 5 years ago

still working new ProvidePlugin({Promise: ['zousan', 'default']})

bluejava commented 5 years ago

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!