Skip to content

Commit

Permalink
chore: change target build to es2022
Browse files Browse the repository at this point in the history
  • Loading branch information
rygent committed Nov 13, 2023
1 parent 2049fef commit 32a8c60
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
"extraFileExtensions": [".mjs"],
"project": ["./tsconfig.eslint.json", "./packages/*/tsconfig.eslint.json"],
"sourceType": "module",
"ecmaVersion": 2021,
"ecmaVersion": 2022,
"warnOnUnsupportedTypeScriptVersion": false
},
"env": {
"node": true,
"es6": true,
"es2017": true,
"es2021": true,
"es2022": true,
"browser": true,
"commonjs": true
},
Expand Down
2 changes: 1 addition & 1 deletion scripts/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { defineConfig, type Options } from 'tsup';
export const createTsupConfig = ({
globalName = undefined,
format = ['esm', 'cjs', 'iife'],
target = 'es2021',
target = 'es2022',
sourcemap = true,
dts = true,
esbuildOptions = (options, context) => {
Expand Down
2 changes: 1 addition & 1 deletion scripts/vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ export const createVitestConfig = (options: UserConfig = {}) =>
},
esbuild: {
...options?.esbuild,
target: (options?.esbuild as ESBuildOptions | undefined)?.target ?? 'es2021'
target: (options?.esbuild as ESBuildOptions | undefined)?.target ?? 'es2022'
}
});
2 changes: 1 addition & 1 deletion vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ import { createVitestConfig } from './scripts/vitest.config';

export default createVitestConfig({
esbuild: {
target: 'es2021'
target: 'es2022'
}
});

0 comments on commit 32a8c60

Please sign in to comment.