v74
- Support
?no-require
flag, with this option you can ignore therequire(...)
call in ESM packages. To support logic like below:// index.mjs let depMod; try { depMod = await import("/path") } finally { // `?no-require` will skip next line when resolving depMod = require("/path") }