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
{{ message }}
Repository navigation
Commit 6205eea
Browse filesBrowse the repository at this point in the historyBrowse files
fix(concatenate-modules): guard a module reference against ASI
A wrapped module's reference is emitted parenthesized, and the leading
semicolon that keeps it off the previous statement is only written when
the caller reports the position as unsafe. Both CommonJS call sites
claimed the position was always safe, so in semicolon-free source the
reference merged into the statement above it and threw at runtime.
Compute `asiSafe` from where the original call sits instead, and apply it
to the unused-export expression, which is parenthesized as well.
Closes#21955Closes#21956
0 commit comments