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