-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Description
The current exports map configuration does not include a main entry point as a default resolution
https://github.com/lxsmnsyc/seroval/blob/main/packages/plugins/package.json#L53
Per the NodeJS docs, if additional subpath patterns are used, there should at least be a default entry point
https://nodejs.org/api/packages.html#subpath-exports
{
"exports": {
".": "./index.js",
"./submodule.js": "./src/submodule.js"
}
}Not having this this will cause APIs like import.meta.resolve to fail
ERROR (ERR_PACKAGE_PATH_NOT_EXPORTED): unable to resolve specifier => `seroval-plugins`For comparison, the main seroval package has one
I think the simplest solution would be just pointing to the same entry point as import, already being used for ./web, e.g.
"exports": {
".": "./dist/esm/production/web.mjs",
"./web": {
// ...
}
},Happy to submit a PR if desired!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels