Skip to content

Commit

Permalink
Tweak emit for performance, unfortunately no let/const lowering
Browse files Browse the repository at this point in the history
  • Loading branch information
jakebailey committed Sep 14, 2022
1 parent 6f5ba94 commit c86b59c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,12 @@ async function esbuild(entrypoint, outfile) {
"--bundle",
`--outfile=${outfile}`,
"--platform=node",
"--target=node12",
"--target=node10", // Node 10; oldest benchmarker.
"--sourcemap",
"--external:./node_modules/*",
"--conditions=require",
// "--supported:const-and-let=false", // Unfortunately, no: https://github.com/evanw/esbuild/issues/297
"--supported:object-rest-spread=false", // See: https://github.com/evanw/esbuild/releases/tag/v0.14.46
]);
}

Expand Down

0 comments on commit c86b59c

Please sign in to comment.