Problem Statement
The SDK requires Node 14.18+ as per
This means we can replace resolve library with native Node.js usage.
Solution Brainstorm
Instead of using resolve, we can use import { createRequire } from 'module';. This is fine because we only need CJS resolution here.
See rollup/plugins#1742 as an example PR doing this.
Problem Statement
sentry-javascript/packages/nextjs/package.json
Line 83 in 3549777
The SDK requires Node
14.18+as persentry-javascript/packages/nextjs/package.json
Line 10 in 3549777
This means we can replace
resolvelibrary with native Node.js usage.Solution Brainstorm
Instead of using resolve, we can useimport { createRequire } from 'module';. This is fine because we only need CJS resolution here.See rollup/plugins#1742 as an example PR doing this.