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

ponyfill Map and WeakMap for older clients #144

Closed
wants to merge 3 commits into from

Conversation

qwales1
Copy link
Collaborator

@qwales1 qwales1 commented Oct 26, 2016

resolves #143

@oscar-b
Copy link

oscar-b commented Oct 27, 2016

The choice is obviously yours, but doesn't this just increase the bundle size for everyone when only needed by a few?

http://kangax.github.io/compat-table/es6/#test-Map
http://kangax.github.io/compat-table/es6/#test-WeakMap

I've been using https://polyfill.io for these things, seems to work quite well. The problem I saw was because they don't polyfill by default if the UA is unknown (in my case, and older Samsung browser), but you can change that behavior.

@qwales1
Copy link
Collaborator Author

qwales1 commented Oct 27, 2016

@oscar-b Yeah good call. The bundle increase is quite significant too. I am going to close this for now.

@qwales1 qwales1 closed this Oct 27, 2016
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.

Use of Map and WeakMap
2 participants