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

Acorn parser does not support import attributes #105

Open
timfish opened this issue Jun 12, 2024 · 0 comments
Open

Acorn parser does not support import attributes #105

timfish opened this issue Jun 12, 2024 · 0 comments

Comments

@timfish
Copy link
Contributor

timfish commented Jun 12, 2024

The older import assertion syntax works:

import coolFile from './something.json' assert { type: 'json' }

But acorn does not appear to support the newer import attribute syntax and it will not get added until Stage 4:

import coolFile from './something.json' with { type: 'json' }

PR #104 actually works around this issue by falling back to the parent loader when parsing fails.

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

No branches or pull requests

1 participant