Skip to content

Commit

Permalink
Update docs/rules/file-extension-in-import.md
Browse files Browse the repository at this point in the history
  • Loading branch information
scagood authored Feb 22, 2024
1 parent b8b563d commit 9790ee6
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion docs/rules/file-extension-in-import.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import foo from "./path/to/a/file" // maybe it's resolved to 'file.js' or 'file.
export * from "./path/to/a/file"
```

However, when using [`--experimental-modules`](https://medium.com/@nodejs/announcing-a-new-experimental-modules-1be8d2d6c2ff), file extensions are required.

We can also import a variety of file types with bundlers such as Webpack. In this situation, explicit file extensions can help to identify the type of file being imported.

Expand Down

0 comments on commit 9790ee6

Please sign in to comment.