You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use case:
A codebase may have string literals that are used for internal / computing purposes only and are never displayed to the end-user. For example, internal custom event names that are lengthy but never go outside the app's scope or string literals that are used to name/reference things within a library/custom data object.
A significant reduction in size could be achieved by mangling these literals, similar to the way properties can be mangled.
Of course, in this case, only matching by regex would make sense. One could prefix/suffix these literals with something and use a regex to match it. E.g. '__myEventName'
Bug report or Feature request? Feature Request
Use case:
A codebase may have string literals that are used for internal / computing purposes only and are never displayed to the end-user. For example, internal custom event names that are lengthy but never go outside the app's scope or string literals that are used to name/reference things within a library/custom data object.
A significant reduction in size could be achieved by mangling these literals, similar to the way properties can be mangled.
Of course, in this case, only matching by regex would make sense. One could prefix/suffix these literals with something and use a regex to match it. E.g. '__myEventName'
Proposed API:
Example:
What would it take to implement something like this? Could the existing property mangling functionality be extended for this use case?
The text was updated successfully, but these errors were encountered: