mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-10-28 06:53:42 +08:00
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>
8 lines
309 B
JSON
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"
|
|
}
|