Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fails to parse export default{} (no space after default) #140

Closed
sapphi-red opened this issue Oct 24, 2022 · 2 comments · Fixed by #141
Closed

Fails to parse export default{} (no space after default) #140

sapphi-red opened this issue Oct 24, 2022 · 2 comments · Fixed by #141

Comments

@sapphi-red
Copy link
Contributor

When the following code is passed, es-module-lexer throws an error.

export default{};

This happens from 1.0.5. It worked with 1.0.4 and before.

reproduction: https://stackblitz.com/edit/node-rvshud?file=index.js,input.js

Real world code: https://github.com/nextapps-de/flexsearch/blob/9abb781357f04e7db8529654c6941009771f4bf1/dist/module/lang/latin/advanced.js

@guybedford
Copy link
Owner

Fix released in 1.1.0.

@sapphi-red
Copy link
Contributor Author

Thank you!

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

Successfully merging a pull request may close this issue.

2 participants