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
If some symbols conflict, need to assign a new name to avoid name conflict. Here has two strategy to assign new name.
the assigned new name is a new name at scope. Esbuild used it.
the assigned new name maybe conflict and also rename conflict names.
Think the scope has a/a$1/a$2 symbols declared. The strategy 2 will caused a/a$1/a$2 every symbol need to rename, The strategy 1 will only rename once a -> a$3.
I understand esbuild could assign new name in one shot. But I'm not sure I understand this. Could you give an example to show why now we will generate more types for names filed of sourcemap.
And for the generated sourcemap, how much we are bigger than esbunild.
hyf0
changed the title
Renamer assign new symbol name strategy.
new deconflict strategy for dealing with conflict names
Mar 28, 2024
If some symbols conflict, need to assign a new name to avoid name conflict. Here has two strategy to assign new name.
Think the scope has
a/a$1/a$2
symbols declared. The strategy 2 will causeda/a$1/a$2
every symbol need to rename, The strategy 1 will only rename oncea -> a$3
.Original discuss is here #365.
The text was updated successfully, but these errors were encountered: