chyyran
How to resolve requires without `.js` extension in a very basic NPM resolver?
I have an NPM resolver that without caching that expects everything to be in a
node_modules
folder, mostly copied from deno cli
https://gist.github.com/rust-play/fbd49c87332ee27b3d217bb1e0005462
I can successfully require
lodash, but one of the npm libraries I'm trying to require imports a babel library like so
It seems like it's failing to resolve the module, cause it panics at thread 'main' panicked at 'called
Result::unwrap() on an
Err value: Error: Cannot find module '@babel/runtime/helpers/interopRequireDefault'
3 replies
Bootstrapping a minimal node-compatible runtime
I'm trying to bootstrap a minimal node-compatible runtime, so I've basically been copying and pasting
MainWorker
and removing things I don't need like napi
or kv
However when it crashes on JsRuntime::new
Is there anything I seem to be missing that could cause this error?7 replies