-
Notifications
You must be signed in to change notification settings - Fork 126
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
Better support for property mangling #38
Comments
Maybe using |
I will create a release avoiding the destructuring of those two fields. In general, I wouldn't change the library to accommodate build tools, as the build tools themselves can be configured, and there are too many possible setups in the wild to account for all of them. In this case though, it makes sense, as it is quite an established convention that variables starting with In general, the index serialization code is one feature that I want to change in the near future. The current serialization is too tightly bound to a specific inverted index implementation, and could hinder further improvements of |
I will close this issue, as it is fixed by this commit and will be part of the next release. |
Released as part of |
The issue is that I cannot mangle properties in my app due to destructuring of private properties in minisearch.
I configure terser to mangle all properties that start from
_
but due to destructuring on this line search in my app doesn't work.As a temporary workaround I marked
_tree
and_prefix
as reserved props.I'd appriate if you could change this and not use properties that stars with
_
in destructuring assignmentsThe text was updated successfully, but these errors were encountered: