From: Haoqun Jiang Date: Wed, 19 Jan 2022 07:49:56 +0000 (+0800) Subject: chore: add target in the build command X-Git-Tag: v3.1.0~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bee0fe30a514f806b9d69ab146f4d1064fca92bc;p=thirdparty%2Fvuejs%2Fcreate-vue.git chore: add target in the build command --- 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",