-
Notifications
You must be signed in to change notification settings - Fork 571
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
Fix/comments with quotes #1320
base: main
Are you sure you want to change the base?
Fix/comments with quotes #1320
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
☁️ Nx Cloud ReportCI is running/has finished running commands for commit 1573747. As they complete they will appear below. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this CI Pipeline Execution ✅ Successfully ran 4 targetsSent with 💌 from NxCloud. |
This is great! You just need to update test snapshots with your latest test:
|
You also need to lint using |
All done now 👍🏾 |
if (this.$refs.elem && typeof window !== \\"undefined\\") { | ||
/** @type {HTMLScriptElement[]} */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One unwanted side-effect of your solution is that it removes all comments from all blocks. That would be a lot of useful content that we don't want to lose...
I will investigate a better approach.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Opps, I guess I misunderstood this part, I thought it meant removing the comments from the whole code.
Expected behavior
Expect comments to be ignored/stripped before any Mitosis logic runs, and not cause any issues
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry about that. The ideal expected behaviour is that comments never cause issues and that most comments make it to the final output.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No worries, I'll look for another solution
Description
Add a short description of:
{ comments: false }
toparseCode
,Side effects:
This change means that comments will always get removed
Note:
I've also updated an argument name from
x
tonode
to make it more readable.