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

fix(compiler-sfc): check parent as well as other nodes #5809

Closed
wants to merge 2 commits into from

Conversation

danielroe
Copy link
Member

@danielroe danielroe commented Apr 26, 2022

resolves #5808

It's possible to have an AST where the preceding node isn't at the top level, for example with a nested if statement.

I don't feel great about this solution, which is basically special-casing known-bad characters; other solutions welcome.

@netlify
Copy link

netlify bot commented Apr 26, 2022

Deploy Preview for vuejs-coverage ready!

Name Link
🔨 Latest commit b4732dc
🔍 Latest deploy log https://app.netlify.com/sites/vuejs-coverage/deploys/62680bacc3b23400095f8326
😎 Deploy Preview https://deploy-preview-5809--vuejs-coverage.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Apr 26, 2022

Deploy Preview for vue-sfc-playground ready!

Name Link
🔨 Latest commit b4732dc
🔍 Latest deploy log https://app.netlify.com/sites/vue-sfc-playground/deploys/62680badc9df630009bf8125
😎 Deploy Preview https://deploy-preview-5809--vue-sfc-playground.netlify.app/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Apr 26, 2022

Deploy Preview for vue-next-template-explorer ready!

Name Link
🔨 Latest commit b4732dc
🔍 Latest deploy log https://app.netlify.com/sites/vue-next-template-explorer/deploys/62680bad99bdec0008748be0
😎 Deploy Preview https://deploy-preview-5809--vue-next-template-explorer.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@yyx990803
Copy link
Member

#5810

@yyx990803 yyx990803 closed this May 17, 2022
@danielroe danielroe deleted the fix/check-parent-for-semi branch May 17, 2022 05:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

async transformer doesn't correctly detect need for semicolon in block
2 participants