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

Remove unicode regexp support and reduce50%+ bundle size. #275

Open
ksenginew opened this issue Jan 5, 2022 · 0 comments
Open

Remove unicode regexp support and reduce50%+ bundle size. #275

ksenginew opened this issue Jan 5, 2022 · 0 comments

Comments

@ksenginew
Copy link

ksenginew commented Jan 5, 2022

I had recently inspected buble dependencies with bundlephobia.com
https://bundlephobia.com/package/[email protected]

regenerate-unicode-properties package takes 47% of the bundle size. It's a dependency of regexpu-core.

regexpu core enables rewriting regular expressions that make use of the ES6 u flag into equivalent ES5-compatible regular expression patterns.

So regepu-core uses 50%(47%+3%) of the bundle size for just unicode regular expressions with cavets
That's not an essential feature. buble can remove support for unicode regular expressions or create a new bundle(named babel-lite or something) without unicode regexp support

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

No branches or pull requests

1 participant