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

Bundle esm and cjs and remove path imports #632

Merged
merged 2 commits into from
Oct 29, 2018
Merged

Bundle esm and cjs and remove path imports #632

merged 2 commits into from
Oct 29, 2018

Conversation

TrySound
Copy link
Contributor

Same structure as in react-router

esm/
  history.js
cjs/
  history.js
  history.min.js
umd/
  history.js
  history.min.js

As you can see the code of this library is almost fully treeshakable.
1kb in webpack is just a runtime. Rollup result is more clean and shows
only one not treeshaked side effect.

Same structure as in react-router

```
esm/
  history.js
cjs/
  history.js
  history.min.js
umd/
  history.js
  history.min.js
```

As you can see the code of this library is almost fully treeshakable.
1kb in webpack is just a runtime. Rollup result is more clean and shows
only one not treeshaked side effect.
@TrySound
Copy link
Contributor Author

/cc @mjackson

@TrySound
Copy link
Contributor Author

@mjackson if you are not ready for major release yet I can try another optimisations.

@TrySound
Copy link
Contributor Author

/cc @mjackson

@mjackson mjackson merged commit 094bcc7 into remix-run:master Oct 29, 2018
@mjackson
Copy link
Member

This looks great, thanks @TrySound. I'd also like to include stubs of all our files that used to be in the root of the build just for the sake of anyone who was using them. Then we can go ahead and ship this in the same version w/out a major version bump.

@TrySound TrySound deleted the bundles branch October 29, 2018 19:13
@lock lock bot locked as resolved and limited conversation to collaborators Dec 28, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants