Skip to content

Conversation

liulinboyi
Copy link
Member

close #5935
feat(compiler-sfc): support syntax export { default } from '...'

@liulinboyi
Copy link
Member Author

Preview

@liulinboyi
Copy link
Member Author

Already tick the "allow edits from maintainer".

@yyx990803
Copy link
Member

Also need a test case

@liulinboyi
Copy link
Member Author

liulinboyi commented May 18, 2022 via email

@liulinboyi
Copy link
Member Author

Also need a test case

Test has been added, All done👌.

@jineshjin
Copy link
Contributor

)} } from '${node.source?.value}'\n`

This is breaking with depcheck
image
@yyx990803 @liulinboyi

@liulinboyi
Copy link
Member Author

=

)} } from '${node.source?.value}'\n`

This is breaking with depcheck
image
@yyx990803 @liulinboyi

Starting with v3.2.34-beta.1, the compiled product is es2020, which requires node version node 14+ and uses new javascript features such as ?..

Related commit build: output es2020 (target node 14+) for cjs/server builds.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

rewriteDefault in @vue/compiler-sfc does not support syntax export { default } from '...' and occurs SyntaxError
3 participants