mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-10-28 06:53:42 +08:00
A call through a bundled ES module's namespace (`ns.fn()`, `(ns.fn)()`, a tagged template) passes the namespace as `this`. Node's namespace is the __toCommonJS object (`__esModule` first and non-enumerable, non-configurable getters); the lowered object of getters differs. The namespace lowers only when every such call targets a top-level function, never reassigned, that reads no `this` (an arrow inside it included); otherwise the package stays refused.
11 lines
313 B
JSON
11 lines
313 B
JSON
{
|
|
"name": "gtesmthis",
|
|
"version": "1.0.0",
|
|
"description": "gtesm's esbuild 0.25.10 output shape with a lazily initialized ES module export that reads `this`, called through the module's namespace",
|
|
"main": "./dist/index.js",
|
|
"types": "./dist/index.d.ts",
|
|
"dependencies": {
|
|
"gtcore": "1.0.0"
|
|
}
|
|
}
|