Find module.register() usage
Recipe ID
org.openrewrite.node.migrate.find-module-registerArtifact@openrewrite/recipes-nodejsmodule.register() for loading ESM loader hooks is runtime-deprecated in Node.js 26 (DEP0205). Use the --import CLI flag with a loader module instead.
Single recipeDEP0205Proprietary
Usage
This recipe has no required configuration options. You’ll need the Moderne CLI configured before running the command below.
mod run . --recipe org.openrewrite.node.migrate.find-module-registerIf the recipe isn’t available locally, install it with:
mod config recipes npm install @openrewrite/recipes-nodejs