Closed Richienb closed 1 week ago
It seems like issue is here: https://github.com/niksy/node-stdlib-browser/blob/master/index.js#L9
Adding initial check for require
before globalThis.require
seemingly uses different globally available method. I thought these are the same methods but this doesn’t seem to be the case.
There’s even module check script for checking CJS and ESM format which passes every time, but this really seems like weird edge case.
Node.js REPL:
./mock/empty.js
does exist though, maybe the relative resolution system broke somehow.Able to import from a regular file though.