| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -87,7 +87,8 @@ If the nearest parent `package.json` lacks a `"type"` field, or contains | |||
| 87 | 87 | `"type": "commonjs"`, extensionless and `.js` files are treated as CommonJS. | |
| 88 | 88 | If the volume root is reached and no `package.json` is found, | |
| 89 | 89 | Node.js defers to the default, a `package.json` with no `"type"` | |
| 90 | - field. | ||
| 90 | + field. "Extensionless" refers to file paths which do not contain | ||
| 91 | + an extension as opposed to optionally dropping a file extension in a specifier. | ||
| 91 | 92 | ||
| 92 | 93 | `import` statements of `.js` and extensionless files are treated as ES modules | |
| 93 | 94 | if the nearest parent `package.json` contains `"type": "module"`. | |
| Back | FazBrowse Home | New Git URL |
0 commit comments