Find source-map-support usages that need manual migration
Recipe ID
org.openrewrite.node.migrate.source-map-support.find-source-map-support-manual-migrationsArtifact@openrewrite/recipes-nodejsMarks every source-map-support usage the automated migration leaves in place — an install() or register entry point that would only map part of the process, options Node has no equivalent for (retrieveSourceMap, retrieveFile, environment: 'browser'), the API beyond install (wrapCallSite, mapSourcePosition, ...), bundler banner strings, package.json scripts whose command doesn't take Node's flags, type imports, re-exports, dynamic imports and test mocks — and records each with a suggested replacement in the SourceMapSupportManualMigrationSteps data table.
Single recipesource-map-supportProprietary
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.source-map-support.find-source-map-support-manual-migrationsIf the recipe isn’t available locally, install it with:
mod config recipes npm install @openrewrite/recipes-nodejs