We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd21495 commit 1f964a5Copy full SHA for 1f964a5
doc/api/packages.md
@@ -1099,8 +1099,8 @@ is a path.
1099
When a package has an [`"exports"`][] field, this will take precedence over the
1100
`"main"` field when importing the package by name.
1101
1102
-When the value is a directory, [it may only be loaded via
1103
-`require()`](modules.md#folders-as-modules).
+It also defines the script that is used when the [package directory
+is loaded via `require()`](modules.md#folders-as-modules).
1104
1105
```cjs
1106
require('./path/to/directory'); // This resolves to ./path/to/directory/main.js.
0 commit comments