mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-10-20 05:40:17 +08:00
9 lines
331 B
TypeScript
9 lines
331 B
TypeScript
// Static import() embeds a fixed graph, so a runtime-computed specifier
|
|
// remains an explicit refusal even though literal program/builtin modules
|
|
// now compile without the dynamic engine.
|
|
async function run(specifier: string): Promise<void> {
|
|
const module = await import(specifier);
|
|
console.log(module);
|
|
}
|
|
run("node:path");
|