Closed piuccio closed 7 years ago
This is awesome, will try to look at it and get it merged tonight. If it works well I think we'll apply the same technique to Preact.
updates?
I need to merge just the src changes here, the build stuff will break commonjs exports.
I think we're going to need two rollup configs.
one for an es bundle (preact-redux.esm.js), the other for a pure UMD bundle (dist/preact-redux.js); this PR currently breaks commonjs exports - unless we are ok with forcing commonJs consumers to require this module using the default keyword e.g.
const preactRedux = require('preact-redux').default
@developit not sure if you've concluded the same (maybe you found another solution). If so i can tack onto this PR with what I'm suggesting
cheers
see PR #15
Fixed in 2.0.2.
Same a #4 (kinda) and a fix for #9
This code exports both a default and named exports