From cc133e85be3b2ac13bd7063fe9bfa7ab268fad59 Mon Sep 17 00:00:00 2001 From: Keith Cirkel Date: Wed, 21 Feb 2024 12:13:11 +0000 Subject: [PATCH] upgrade ES target to es2022 --- package.json | 2 +- tsconfig.json | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 1773e78..d089985 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,7 @@ "lint": "eslint . --ext .js,.ts && tsc --noEmit", "lint:fix": "npm run lint -- --fix", "prebuild": "npm run clean && npm run lint && mkdir dist", - "bundle": "esbuild --bundle dist/index.js --keep-names --outfile=dist/bundle.js --format=esm", + "bundle": "esbuild --target=es2022 --bundle dist/index.js --keep-names --outfile=dist/bundle.js --format=esm", "build": "tsc && npm run bundle && npm run manifest", "prepublishOnly": "npm run build", "pretest": "npm run build", diff --git a/tsconfig.json b/tsconfig.json index c78d46a..5241969 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,7 +1,7 @@ { "compilerOptions": { - "module": "es2020", - "target": "es2017", + "module": "es2022", + "target": "es2022", "strict": true, "moduleResolution": "node", "declaration": true,