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

chore: assume array in for-of transform #1

Merged
merged 1 commit into from Dec 25, 2019

Conversation

JLHwung
Copy link
Contributor

@JLHwung JLHwung commented Dec 25, 2019

In this PR I reduces the unpacked npm package size from 5.1 kB to 4.6 kB.

Technically it is a breaking change since one can not supply a general iterable object to the second argument levernary(str, array), however, I think it is okay to restrict array to be plain array.

Related: Nicolò is proposing to replace js-levenstein by levenary in babel/babel#10924.

@tanhauhau tanhauhau merged commit 214b674 into tanhauhau:master Dec 25, 2019
@JLHwung JLHwung deleted the shrink-bundle-size branch December 25, 2019 12:49
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.

None yet

2 participants