-
-
Notifications
You must be signed in to change notification settings - Fork 466
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(codegen): converts line comment to block comment if it is a `PURE…
…` comment (#6356) The last part of fixing https://github.com/rolldown/rolldown/pull/2375/files#r1789011257 In the following case, the pure comment was written by `//` ```ts const Component = // #__PURE__ React.forwardRef((props, ref) => {}); ``` The printed code looks like this ```ts const Component = // #__PURE__ React.forwardRef((props, ref) => {}); ``` As you can see, it is broken because the code also commented, so we need to replace `//` with `/* */`
- Loading branch information
Showing
3 changed files
with
19 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters