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!
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.resolveto failI think the simplest solution would be just pointing to the same entry point as
import, already being used for./web, e.g.Happy to submit a PR if desired!