Build: Unset target on esbuild first run (#12445)

This commit is contained in:
fisker Cheung authored and GitHub committed 2022-03-14 00:31:03 +08:00
1 parent bd73f85332
commit 92f2c29235
1 file changed
+1
+1
View File
@@ -221,6 +221,7 @@ async function runBuild(bundle, esbuildOptions, buildOptions) {
plugins: plugins.filter(({ name }) => name !== "umd"),
format: format === "umd" ? "cjs" : format,
minify: false,
target: undefined,
});
const text = await fs.readFile(outfile);