Files
scriptc/tests/fixtures/npm/node_modules/gtesmerror/package.json
T
Malte UblandClaude Opus 5.5 5b53ce7144 Hoist lazily defined classes over global constructors
A bundled package's error class defined inside an __esm initializer
(`NowBuildError = class extends Error { … }`) now hoists to a declaration
like the classes over builtin module members, so a program class can
extend it and `new` and `instanceof` work against both. Reading a standard
global constructor the bundle never rebinds runs no code. References in
esbuild's `0 && (module.exports = { … })` annotation for Node's CommonJS
lexer never run and no longer block the move.

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

8 lines
309 B
JSON

{
"name": "gtesmerror",
"version": "1.0.0",
"description": "real esbuild 0.27 output (--bundle --platform=node --format=cjs) of a TypeScript package whose error class over Error is defined inside a lazy __esm initializer (one module require()s it)",
"main": "dist/index.js",
"types": "index.d.ts"
}