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,