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 #616 print template literal in default export #619

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mheiber
Copy link

@mheiber mheiber commented Aug 13, 2019

fix #616, which is a bug where

export default `hello`

would print as the following (not valid JS):

export default ``hello``

Fix by not nulling out .loc information
for the nodes, thus enabling them
to be processed by fixTemplateLiteral.

Related:

fix benjamn#616, which is a bug where

    export default `hello`

would print as the following (not valid JS):

    export default ``hello``

Fix by *not* nulling out .loc information
for the nodes, thus enabling them
to be processed by `fixTemplateLiteral`.

Related:
- benjamn#556 (comment)
- benjamn@537a5ac
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.

Incorrect print of default export of template literal
1 participant