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

Changed from Browserify to Rollup #96

Merged
merged 50 commits into from
Oct 20, 2016
Merged

Changed from Browserify to Rollup #96

merged 50 commits into from
Oct 20, 2016

Conversation

grahammendick
Copy link
Owner

@grahammendick grahammendick commented Oct 20, 2016

Used TypeScript 2.0 in order to target ES3, to keep cross browser support, with ES6 Modules, which Rollup needs. Used default exports on internal modules, but not on Navigation and NavigationReact so that the public Api is unchanged.

Rollup saves anywhere between 10% and 20% off the built file sizes. The gzipped navigation.js is under 6kb.

Removed default export and directly exported inidividual classed and
interfaces. Means that var Navigation = require('navigation') works the
same in node
Typescript 2 added support for es3 target and es6 module. This is what
makes rollup work with typescript - need typescript to compile to es3
and rollup to remove the es6 modules
Seems faster than browserify
Tests didn't work without it
Can't remember why needed this. It was some workaround
@grahammendick grahammendick merged commit d443201 into master Oct 20, 2016
@grahammendick grahammendick deleted the rollup branch October 20, 2016 11:23
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