Skip to content

Error on invalid import attr position #4522

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

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

Conversation

RReverser
Copy link
Member

The reference tests for imports used invalid syntax, and because we don't error on attributes in invalid position by default, it was silently passing anyway.

I've changed the import attributes to error by default (by the way, why do we not do this for all attributes? it seems like a pretty common footgun), fixed the test, changed it to --target web so that we could actually see imported files in the JS snapshot, and updated snapshots.

@RReverser
Copy link
Member Author

Judging by other PRs CI status, quite a few of these errors are coming simply from new Rust version and would happen on main branch too. I guess that needs to be fixed upstream first.

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.

1 participant