Fix build target

This commit is contained in:
fisker Cheung committed 2022-03-14 10:54:46 +08:00
1 parent d123f7f481
commit 4792bbc1c8
1 file changed
+1 -1
+1 -1
View File
@@ -144,7 +144,7 @@ function* getEsbuildOptions(bundle, buildOptions) {
// Disable esbuild auto discover `tsconfig.json` file
tsconfig: path.join(__dirname, "empty-tsconfig.json"),
mainFields: ["module", "main"],
target: [...(bundle.esbuildTarget ?? ["node10"])],
target: [...(bundle.esbuildTarget ?? ["node12"])],
logLevel: "error",
};