While trying to create a minimal reproduction for #106, I found that the issue was caused by the following CommonJs in @prisma/client:
module.exports = { ...require('.') }
require('.') was getting resolved to {cwd}/index.js whereas it should be resolving to ./, ie. the index file in the same directory as the current file ./index.js.
Closes #116 and closes #97
While trying to create a minimal reproduction for #106, I found that the issue was caused by the following CommonJs in
@prisma/client
:require('.')
was getting resolved to{cwd}/index.js
whereas it should be resolving to./
, ie. the index file in the same directory as the current file./index.js
.