Skip to content

Commit 8362f48

Browse files
committed
chore: add --target=ES2022, which is already used, to esbuild command to prevent warning
1 parent d4530fa commit 8362f48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
],
3131
"scripts": {
3232
"build": "npm run build:esm && npm run build:cjs",
33-
"build:cjs": "esbuild src/index.ts --bundle --platform=node --outfile=dist/index.cjs",
33+
"build:cjs": "esbuild src/index.ts --bundle --target=ES2022 --platform=node --outfile=dist/index.cjs",
3434
"build:esm": "tsc",
3535
"format": "prettier --ignore-path .gitignore --write \"**/*.{vue,css,less,scss,html,htm,json,md,markdown,yml,yaml}\" --loglevel warn",
3636
"format:check": "prettier --ignore-path .gitignore --check \"**/*.{vue,css,less,scss,html,htm,json,md,markdown,yml,yaml}\" --loglevel warn",

0 commit comments

Comments
 (0)