How to add /*#__PURE__/ (or any comment) to a call expression in swc plugin #8423
-
I am working on graphql-tag-swc-plugin, where I have to add a pure function call expression to the I found a trait for this: https://rustdoc.swc.rs/swc_common/comments/trait.Comments.html#tymethod.add_pure_comment |
Beta Was this translation helpful? Give feedback.
Answered by
kdy1
Dec 14, 2023
Replies: 1 comment 1 reply
Answer selected by
rishabh3112
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://github.com/swc-project/plugins/tree/6dca40dc542fda2bac9ea2976793326d190f80ab/packages/swc-magic