Skip to content

Commit

Permalink
fix: resolve createRequire import clash from ni/tinyexec (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
Codex- authored Sep 23, 2024
2 parents 25ae17e + 020c191 commit d6bdc1b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions dist/index.mjs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions esbuild.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ import { analyzeMetafile, build } from "esbuild";
// Ensure require is properly defined: https://github.com/evanw/esbuild/issues/1921
banner: {
js:
"import { createRequire } from 'module';\n" +
"const require = createRequire(import.meta.url);",
"import { createRequire as __knip_cr } from 'node:module';\n" +
"const require = __knip_cr(import.meta.url);",
},
});

Expand Down

0 comments on commit d6bdc1b

Please sign in to comment.