Skip to content

v74

Compare
Choose a tag to compare
@ije ije released this 26 Mar 09:49
  • Support ?no-require flag, with this option you can ignore the require(...) 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")
    }