Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Output ESM build, and make module tree-shakeable #198

Closed
wants to merge 1 commit into from
Closed

Output ESM build, and make module tree-shakeable #198

wants to merge 1 commit into from

Conversation

unindented
Copy link
Contributor

@unindented unindented commented Dec 7, 2018

Fixes #196 by doing the following:

  • Builds an ESM version of the library through an "esm" env with modules: false.
  • Adds "module" and "sideEffects" entries in package.json to notify Webpack that this module is tree-shakeable.
  • Removes createAll, as it's a choke point that imports all the things, making it impossible for Webpack to three-shake anything.
  • Moves the "rewire" plugin to only get applied during tests, as it makes no sense for it to be in production builds.

@supasate
Copy link
Owner

supasate commented Dec 9, 2018

Great one! LGTM!

Is there any breaking-change that should be aware of?

@supasate supasate closed this Dec 9, 2018
@unindented
Copy link
Contributor Author

@supasate no breaking changes I'm aware of. I tried consuming it in my app without any issues.

@supasate
Copy link
Owner

@unindented This PR was accidentally closed because it's based on the deleted support-react-redux-v6 branch. Can you create a new PR on the master branch instead? Sorry about that!

@unindented
Copy link
Contributor Author

Ah, no worries, will reopen against master. Thanks!

@unindented
Copy link
Contributor Author

@supasate reopened against master here: #202

@unindented unindented deleted the support-react-redux-v6 branch December 10, 2018 21:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants