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

Switch browser build to use Rollup, drop @babel/runtime dependency #165

Merged
merged 5 commits into from
May 9, 2020

Conversation

eemeli
Copy link
Owner

@eemeli eemeli commented May 3, 2020

One of the nice things Rollup does is that given multiple entry points, it'll automatically dedupe all their dependencies. This allows the 70-ish source files of yaml to be bundled into a much smaller number, which I figured might make it more bearable to bundle in the helpers that we've been getting from @babel/runtime.

As it turns out, the final output is actually smaller with Rollup if the helpers are bundled in. I have no idea why. But everything still seems to work fine, even in IE 11. The current total minified, gzipped size of the library is about 56k.

To help with this, the various public entry points are now pointing to a much smaller set of re-exporters, rather than deep within the library.

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.

1 participant