Package exports map for the exports field. Defines entry points of a package when imported by name.
exports
{ "exports": { ".": "./index.js", "./feature": "./src/feature.js", "./package.json": "./package.json" }} Copy
{ "exports": { ".": "./index.js", "./feature": "./src/feature.js", "./package.json": "./package.json" }}
Maps subpath patterns to file paths or conditional exports. Use null to restrict access to a subpath.
null
Package exports map for the
exportsfield. Defines entry points of a package when imported by name.See