]> git.ipfire.org Git - thirdparty/vuejs/create-vue.git/commitdiff
chore: add target in the build command
authorHaoqun Jiang <haoqunjiang@gmail.com>
Wed, 19 Jan 2022 07:49:56 +0000 (15:49 +0800)
committerHaoqun Jiang <haoqunjiang@gmail.com>
Wed, 19 Jan 2022 07:49:56 +0000 (15:49 +0800)
package.json

index 898c917e0bef654cec276d7d30019b55adf7fd49..25ee3a51c26fc1b678e589736325887afa552b18 100644 (file)
@@ -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",