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

Slimmer build for modern browsers #259

Closed
nolanlawson opened this issue Dec 18, 2018 · 1 comment · Fixed by #260
Closed

Slimmer build for modern browsers #259

nolanlawson opened this issue Dec 18, 2018 · 1 comment · Fixed by #260

Comments

@nolanlawson
Copy link

For those of us who don't have to support IE, it would be nice to have a build of emoji-mart that removes all the babel-runtime polyfills, class transforms, etc. Perhaps the build structure could be something like:

dist
dist-es
dist-modern

…where dist-modern is also an ES module build, and doesn't contain any of the Babel transforms for older browsers. If users want to get fancy with this (e.g. support certain versions of certain modern browsers), then they can run their own Babel transforms.

@nolanlawson
Copy link
Author

Just to put this in context: in my own app (pinafore.social), the chunk containing nimble-picker weighs in at 46.17kB, of which 5.18kB is babel's core-js. Probably there are also additional savings that could come from removing transforms within nimble-picker itself.

screenshot from 2018-12-18 13-11-15

nolanlawson added a commit to nolanlawson/emoji-mart that referenced this issue Dec 18, 2018
nolanlawson added a commit to nolanlawson/emoji-mart that referenced this issue Dec 18, 2018
nolanlawson added a commit to nolanlawson/emoji-mart that referenced this issue Mar 8, 2019
nolanlawson added a commit to nolanlawson/emoji-mart that referenced this issue Mar 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant