Skip to content

Commit c86b59c

Browse files
committed
Tweak emit for performance, unfortunately no let/const lowering
1 parent 6f5ba94 commit c86b59c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Gulpfile.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,12 @@ async function esbuild(entrypoint, outfile) {
100100
"--bundle",
101101
`--outfile=${outfile}`,
102102
"--platform=node",
103-
"--target=node12",
103+
"--target=node10", // Node 10; oldest benchmarker.
104104
"--sourcemap",
105105
"--external:./node_modules/*",
106106
"--conditions=require",
107+
// "--supported:const-and-let=false", // Unfortunately, no: https://github.com/evanw/esbuild/issues/297
108+
"--supported:object-rest-spread=false", // See: https://github.com/evanw/esbuild/releases/tag/v0.14.46
107109
]);
108110
}
109111

0 commit comments

Comments
 (0)