Skip to content

Commit

Permalink
Update configuration-options document (#5708)
Browse files Browse the repository at this point in the history
* Update index.md

https://nodejs.org/docs/latest-v22.x/api/esm.html#import-attributes
https://stackoverflow.com/a/78876692/12639496

* Update docs/command-line-interface/index.md

use the correct new terminology

Co-authored-by: Lukas Taegert-Atkinson <[email protected]>

---------

Co-authored-by: Lukas Taegert-Atkinson <[email protected]>
  • Loading branch information
sacru2red and lukastaegert authored Nov 4, 2024
1 parent 0776b4e commit daa6db8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/command-line-interface/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -330,10 +330,10 @@ export default {
It can be useful to import your package file to e.g. mark your dependencies as "external" automatically. Depending on your Node version, there are different ways of doing that:
- For Node 17.5+, you can use an import assertion
- For Node 18.20+, you can use an import attribute
```js twoslash
import pkg from './package.json' assert { type: 'json' };
import pkg from './package.json' with { type: 'json' };

export default {
// Mark package dependencies as "external". Rest of configuration
Expand Down

0 comments on commit daa6db8

Please sign in to comment.