Skip to content

Commit 4294f8c

Browse files
buffcodeclaude
andcommitted
fix(esm): use node: prefix for built-in module imports
Deno's strict ESM loader rejects bare specifiers for Node built-ins. TypeScript preserves specifiers verbatim, so the source must use the node: prefix for both CJS and ESM output to work across Node, Deno, and other strict ESM runtimes. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 5e9701e commit 4294f8c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/NtpTimeSync.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"use strict";
22

3-
import * as dgram from "dgram";
3+
import * as dgram from "node:dgram";
44
import { NtpPacket, NtpPacketParser } from "ntp-packet-parser";
55
import { NtpTimeResult } from "./NtpTimeResult.js";
66
import { RecursivePartial } from "./RecursivePartial.js";

0 commit comments

Comments
 (0)