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

Import Attributes #1289

Open
thescientist13 opened this issue Apr 12, 2024 · 1 comment
Open

Import Attributes #1289

thescientist13 opened this issue Apr 12, 2024 · 1 comment

Comments

@thescientist13
Copy link

thescientist13 commented Apr 12, 2024

Import Attributes are a Stage 3 TC39 specification that introduces additional syntax to the language and has recently landed in NodeJS starting in 18.20.0 without needing an experimental flag.

import data from './data.json' with { type: 'json' };

I assume this project would only adopt it when it becomes Stage 4 but just wanted to confirm if that would be the case? (I am aware of the community plugin which works great, but was just curious to confirm my understanding of the process for this project. For example, Stage 4 is the policy for ESLint.

Or would it make sense to add it to acorn-stage3 in the meantime?)


Thanks and much appreciated all the great work on this project! ✌️

@thescientist13
Copy link
Author

Import attributes (and JSON Modules) are now Stage 4!

Congrats to @NicoloRibaudo on advancing both Import Attributes & JSON Modules to Stage 4 at @TC39 today 🎉

It introduces the with keyword for imports. Chrome successfully unshipped the assert keyword 👍

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