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

feat: consistent esm syntax err #90

Merged
merged 4 commits into from
Dec 29, 2023
Merged

feat: consistent esm syntax err #90

merged 4 commits into from
Dec 29, 2023

Conversation

guybedford
Copy link
Collaborator

@guybedford guybedford commented Dec 10, 2023

This updates the import and export errors from the CJS lexer to be surfaced as a .code === 'ERR_LEXER_ESM_SYNTAX'.

I'm kind of unsure about this, but wanted to experiment with this as a possible approach to handling the syntax detection problem, so this perhaps gives us something to discuss further.

@guybedford guybedford merged commit 279682c into main Dec 29, 2023
1 check failed
@guybedford guybedford deleted the esm-syntax-err branch December 29, 2023 13:35
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.

None yet

1 participant