Files
scriptc/tests/fixtures/npm/node_modules/gtpolyfills/package.json
T
Malte UblandClaude Opus 5.5 f80e4c1a09 Compile polyfill packages that are Node builtins as the builtins
isarray, safe-buffer, process-nextick-args, inherits and util-deprecate
evaluate to a Node builtin on Node 24 at their checked major versions, so
a require of one compiles as that builtin expression at the require's
position: from an opted-in package's files (the installed version where
Node's resolution finds it), from the program's own CommonJS files, and
through an esbuild __commonJS chunk whose pnpm path key names the package
and its version. The package's files never join the program.

readable-stream 2.x and 4.x compile as node:stream, the package's own
READABLE_STREAM=disable behavior (a documented divergence). A use of the
entry's export picks the builtin module (member reads of the carried
classes) or stream.Readable (value uses); a mixture keeps the package.
3.x stays as is: its disable branch throws on Node 24.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-19 19:52:05 -07:00

15 lines
450 B
JSON

{
"name": "gtpolyfills",
"version": "1.0.0",
"description": "a package built on the classic Node polyfill packages (isarray, safe-buffer, process-nextick-args, inherits, util-deprecate), installed as their published releases",
"main": "index.js",
"types": "index.d.ts",
"dependencies": {
"inherits": "2.0.4",
"isarray": "1.0.0",
"process-nextick-args": "2.0.1",
"safe-buffer": "5.2.1",
"util-deprecate": "1.0.2"
}
}