Requires module
in package.json
to be set to the ES6 entrypoint of the package. It is assumed that this is "dist-esm/src/index.js"
.
This rule is fixable using the --fix
option.
{
"module": "dist-esm/src/index.js"
}
{
"module": "dist-esm/src/lib/index.js"
}
{
"module": "dist/index.js"
}
{}