developit / preact-redux

:loop: Preact integration for Redux (no shim needed!)
https://npm.im/preact-redux
MIT License
288 stars 27 forks source link

Use named exports. #4

Closed developit closed 7 years ago

developit commented 7 years ago

Relates to comment in #3: https://github.com/developit/preact-redux/pull/3#issuecomment-252553434

yfr commented 7 years ago

I don't quite understand the memory plugin and the settings for that.

developit commented 7 years ago

In the case of the ESM build output this PR makes it basically a pass-through. For the commonjs output, that is basically injecting a "shim" entrypoint. The purpose is to change the resulting commonjs to be:

// what's really exported in the umd bundle:
module.exports = require('./preact');
developit commented 7 years ago

Fixed in 2.0.2.