diff --git a/.eslintrc.cjs b/.eslintrc.cjs index d44b69e..18cd7d0 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -15,6 +15,7 @@ module.exports = { env: { browser: true, es2020: true, + es2022: true, node: true, }, rules: { diff --git a/tsconfig.json b/tsconfig.json index 013f11d..899eb83 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -2,7 +2,7 @@ "compilerOptions": { "moduleResolution": "node", "module": "es2022", - "lib": ["es2020", "DOM", "WebWorker"], + "lib": ["es2022", "DOM", "WebWorker"], "target": "es2020", /** svelte-preprocess cannot figure out whether you have a value or a type, so tell TypeScript diff --git a/vite.config.js b/vite.config.js index b0b09aa..a505b37 100644 --- a/vite.config.js +++ b/vite.config.js @@ -7,7 +7,7 @@ export default { plugins: [sveltekit(), pngToGifForRetro()], build: { - target: 'es2020', + target: 'es2022', }, base: '',