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 }}
This repository was archived by the owner on May 12, 2025. It is now read-only.
If a source code uses encoding with BOM marker, this marker becomes a part of a prefix in a JS.CompilationUnit.
During the equality check on the Java side (org.openrewrite.Parser.requirePrintEqualsInput) between the source code and the code generated based on the LST, Java trims the BOM marker.
So this causes an idempotency error.
Therefore, we also detect and trim the BOM marker on a JS/TS parser side from JS.CompilationUnit prefix.
0 commit comments