Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(compiler): take the comments option to fully control whether to keep comment nodes #3395

Closed
wants to merge 5 commits into from
Closed

feat(compiler): take the comments option to fully control whether to keep comment nodes #3395

wants to merge 5 commits into from

Conversation

HcySunYang
Copy link
Member

Close: #3392

This PR does not change any default behavior, but allows the comments option to fully control comment nodes.

Copy link
Member

@posva posva left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks better than #3394 and made me realize my mistake in the comment I left there 😅

packages/compiler-core/src/parse.ts Show resolved Hide resolved
packages/compiler-core/src/parse.ts Outdated Show resolved Hide resolved
@HcySunYang HcySunYang added the 🍰 p2-nice-to-have Priority 2: this is not breaking anything but nice to have it addressed. label Mar 19, 2021
@kospl
Copy link

kospl commented Mar 27, 2021

@HcySunYang
Copy link
Member Author

Also strange comment text here

should be fine now

@DV8FromTheWorld
Copy link
Contributor

@HcySunYang Are you planning to fix this PR?
If not I will open a PR with similar changes as I am in need of this fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🍰 p2-nice-to-have Priority 2: this is not breaking anything but nice to have it addressed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Compile function return comments (even if explicitly set "no comments" option)
6 participants