Skip to content

Commit a911404

Browse files
build(nodejs): suppress expected empty-import-meta warning in CJS build
The CJS build intentionally produces empty import.meta — our runtime code detects this and falls back to createRequire. Silence the esbuild warning to avoid confusing contributors. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent c472d79 commit a911404

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

nodejs/esbuild-copilotsdk-nodejs.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ await esbuild.build({
2626
target: "es2022",
2727
sourcemap: false,
2828
outExtension: { ".js": ".js" },
29+
logOverride: { "empty-import-meta": "silent" },
2930
});
3031

3132
// Mark the CJS directory so Node treats .js files as CommonJS

0 commit comments

Comments
 (0)