-
-
Notifications
You must be signed in to change notification settings - Fork 278
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
Expected volume reduction #338
Comments
Happy to hear your ideas about what specifically would be changed and how this would be achieved. And I'd be happy to consider PRs. Note that XRegExp is already split into a much smaller base script and a collection of addons. It's just that all the addons are bundled together with the base script for the npm package. Some of the Unicode addons are where almost all of the size comes from. |
as your say Use the following files in es mode Line 20 in 2dcf16d
But add all addons to base script Lines 10 to 15 in 2dcf16d
So it's impossible to tree shake. Therefore, it should be used base script import XRegExp from 'xregexp/src/xregexp' Due to the use of Will report an error and cannot find the declaration file for the module "xregexp/src/xregexp". Whether addons and base scripts should be exported? |
Do you have some updated here? |
After analyzing it with bundle analyze, it is found that the library is referenced and there are more than 600 kb without compression. It's too big. Can it be made into something like lodash-es, partially introduced and partially realized! Thank you
The text was updated successfully, but these errors were encountered: