From bee0fe30a514f806b9d69ab146f4d1064fca92bc Mon Sep 17 00:00:00 2001 From: Haoqun Jiang Date: Wed, 19 Jan 2022 15:49:56 +0800 Subject: [PATCH] chore: add target in the build command --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 898c917e..25ee3a51 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,7 @@ "scripts": { "prepare": "husky install", "format": "prettier --write .", - "build": "esbuild --bundle index.js --format=cjs --platform=node --outfile=outfile.cjs", + "build": "esbuild --bundle index.js --format=cjs --platform=node --target=node14 --outfile=outfile.cjs", "snapshot": "zx ./scripts/snapshot.mjs", "pretest": "run-s build snapshot", "test": "zx ./scripts/test.mjs", -- 2.39.5