When checking for existence of an import, the new "exports" field is not checked.
Example:
If package foo has this package.json:
{
"exports": {
"./bar": "./src/bar.js"
}
}
Then importing it (or requiring it) via
yields a no-missing-import error, when in fact it works (Node >= 12.x).
When checking for existence of an import, the new "exports" field is not checked.
Example:
If package
foohas thispackage.json:{ "exports": { "./bar": "./src/bar.js" } }Then importing it (or requiring it) via
yields a
no-missing-importerror, when in fact it works (Node >= 12.x).