Closed petersalas closed 11 months ago
In exports.ts, the following:
exports.ts
const mod = resolveExport(pkg.exports['.'], ['require']) const main = c?.main ?? !!mod if (main) { /* [snip] */ } else { if (c) delete c.main /* [snip] */ }
neglects that main might be false due to c?.main being false even when a . export is defined.
main
false
c?.main
.
The effect is that it's not possible to durably set "main": false when a . export is defined.
"main": false
In
exports.ts
, the following:neglects that
main
might befalse
due toc?.main
being false even when a.
export is defined.The effect is that it's not possible to durably set
"main": false
when a.
export is defined.