fix(javascript): preserve literal CommonJS path punctuation (#576)

This commit is contained in:
Kaoru0822
2026-10-05 22:28:51 +08:00
committed by GitHub
parent 52bf709bce
commit 063cd25a93
8 changed files with 290 additions and 7 deletions
@@ -42,6 +42,7 @@ const addNativeBinding = (input: NativeBindingInput): void => {
value.specifier,
file.path,
context.filesByPath,
value.module_kind,
);
const addon = resolved === null ? undefined : context.fileNodes.get(resolved);
const binding = context.accumulator.addNode({