mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-10-26 06:34:20 +08:00
* Add static Node path function values * Preserve JavaScript builtin alias fences
9 lines
337 B
JavaScript
9 lines
337 B
JavaScript
// JavaScript builtin aliases remain compile-time call targets, not static
|
|
// function values. The direct call lowers; the escaping value keeps the
|
|
// pre-existing named fence instead of materializing a TypeScript closure.
|
|
import { extname } from "node:path";
|
|
|
|
const ext = extname;
|
|
console.log(ext("/tmp/example.ts"));
|
|
console.log(ext);
|