Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixup! esm: use import attributes instead of import assertions
Co-authored-by: Geoffrey Booth <webadmin@geoffreybooth.com>
  • Loading branch information
aduh95 and GeoffreyBooth authored Oct 11, 2023
commit d26517a2f7aa21b988b0b21368b5cd0c6de65cd5
8 changes: 7 additions & 1 deletion doc/api/esm.md
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,8 @@ absolute URL strings.
import fs from 'node:fs/promises';
```

<a id="import-assertions"></a>

## Import attributes
Comment thread
aduh95 marked this conversation as resolved.

<!-- YAML
Expand All @@ -250,7 +252,11 @@ changes:
description: Switch from Import Assertions to Import Attributes.
-->

> Stability: 1 - Experimental
> Stability: 1.1 - Active development

> This feature was previously named "Import assertions", and using the `assert`
> keyword instead of `with`. Any uses in code of the prior `assert` keyword should
> be updated to use `with` instead.

The [Import Attributes proposal][] adds an inline syntax for module import
statements to pass on more information alongside the module specifier.
Expand Down