* Print import attributes * Update visitor keys for import attributes * Update snapshots for visitor-keys * Update `babel-plugins` tests * Update import attributes tests * Update misc tests * Add changelog * Enable `importAttributes` and `importAssertions` * Print ImportAssertion syntax * Add `babel-plugins` tests * Add import assertions tests * Add misc tests for import assertions * Update changelog * Fix words * Use `deprecatedAssertSyntax` * Update `@babel/parser` * Use deprecatedAssertSyntax * Remove needless tests * Update `@babel/types` * Update visitor-keys * Run `yarn dedupe` * Update src/language-js/print/module.js Co-authored-by: Nicolò Ribaudo <hello@nicr.dev> * Address review --------- Co-authored-by: Nicolò Ribaudo <hello@nicr.dev>
10 lines
296 B
Markdown
10 lines
296 B
Markdown
#### Support Import Attributes (#14861, #14863 by @sosukesuzuki)
|
|
|
|
Support [Import Attributes](https://github.com/tc39/proposal-import-attributes) proposal.
|
|
|
|
<!-- prettier-ignore -->
|
|
```jsx
|
|
import json from "./foo.json" with { type: "json" };
|
|
import("./foo.json", { with: { type: "json" } });
|
|
```
|