Skip to content

Commit daa6db8

Browse files
Update configuration-options document (#5708)
* 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]>
1 parent 0776b4e commit daa6db8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/command-line-interface/index.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -330,10 +330,10 @@ export default {
330330
331331
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:
332332
333-
- For Node 17.5+, you can use an import assertion
333+
- For Node 18.20+, you can use an import attribute
334334
335335
```js twoslash
336-
import pkg from './package.json' assert { type: 'json' };
336+
import pkg from './package.json' with { type: 'json' };
337337

338338
export default {
339339
// Mark package dependencies as "external". Rest of configuration

0 commit comments

Comments
 (0)