Skip to content

Commit

Permalink
fix: bump esbuild target to node 14, fixes esm issue
Browse files Browse the repository at this point in the history
  • Loading branch information
DylanPiercey committed Jan 2, 2022
1 parent 38afc12 commit 97bc280
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import { build, BuildOptions } from "esbuild";
entryPoints,
outbase: srcdir,
platform: "node",
target: ["node12"],
target: ["node14"],
};

await Promise.all([
Expand Down
2 changes: 1 addition & 1 deletion esbuild-register.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require("esbuild-register/dist/node").register({
target: ["node12"],
target: ["node14"],
define: { "import.meta.url": "__filename" },
});

0 comments on commit 97bc280

Please sign in to comment.