-
-
Notifications
You must be signed in to change notification settings - Fork 8.4k
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(ssr): v-slot stop empty attribute producing syntax error #3326
Conversation
Hm, sort of wish I could call Ooh, there is |
@@ -90,6 +90,11 @@ describe('ssr: components', () => { | |||
`) | |||
}) | |||
|
|||
test('empty attribute should not produce syntax error', () => { | |||
// previously this would produce syntax error `default: _withCtx((, _push, ...)` | |||
expect(compile(`<foo v-slot="">foo</foo>`).code).not.toMatch(`(,`) |
This comment was marked as outdated.
This comment was marked as outdated.
Sorry, something went wrong.
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.
Oh I didn't see the comment above
Bump? Also is there something that could be done so that acorn produces better output for the syntax error since it doesn't map to visible source? |
Previously the cjs build implicitly relies on hoisted versions of the deps, causing it to resolve to newer versions of estree-walker when present. fix vuejs#6602
Co-authored-by: pengbo43 <pengbo43@jd.com> Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
Co-authored-by: webfansplz <>
…6812) Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
…ot affect block tracking (vuejs#5670) fix vuejs#5657
…en prod and dev (vuejs#6714) fix vuejs#6697
…nitial values (fix: vuejs#5032) (vuejs#5033)
… types (fix: vuejs#2855) (vuejs#5458) Co-authored-by: Carlos Rodrigues <carlos@hypermob.co.uk>
…ejs#6810) Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
…ring props normalization (close: vuejs#6915) (vuejs#6916)
Sorry for letting this hang for so long - somehow GitHub seems to fail to recognize updates in your branch even after I resolved the conflicts, so I had to manually land the changes in 09bb3e9. Thanks again! |
…mpty attr (vuejs#3326) squashed from fix by @tjk
…mpty attr (vuejs#3326) squashed from fix by @tjk
currently produces an SSR render function with a syntax error (no first param):
The fix is probably not right but don't know internals enough to know where it should be fixed or how this should be handled better. As I left a comment, if this should error instead of just work... it probably still requires changes because currently you just end up with a stack trace for compiled source code which you cannot see, for example: