fix(tsconfig): Update TypeScript configs to ES2022 and remove deprecated compiler flags

This commit is contained in:
2025-11-17 08:09:37 +00:00
parent b69abda86c
commit 94aff06cbc
4 changed files with 9 additions and 7 deletions

View File

@@ -1,10 +1,8 @@
{ {
"compilerOptions": { "compilerOptions": {
"experimentalDecorators": true, "target": "ES2022",
"target": "ES2020", "module": "ES2022",
"module": "ES2020",
"moduleResolution": "node12", "moduleResolution": "node12",
"useDefineForClassFields": false,
"preserveValueImports": true, "preserveValueImports": true,
"esModuleInterop": true "esModuleInterop": true
} }

View File

@@ -1,5 +1,11 @@
# Changelog # Changelog
## 2025-11-17 - 2.5.2 - fix(tsconfig)
Update TypeScript configs to ES2022 and remove deprecated compiler flags
- assets/tsconfig.json: set target and module to ES2022 (was ES2020)
- assets/tsconfig.json and tsconfig.json: remove experimentalDecorators and useDefineForClassFields flags to align with updated TS setup
## 2025-06-26 - 2.5.1 - fix(readme) ## 2025-06-26 - 2.5.1 - fix(readme)
Update license and legal information section in readme Update license and legal information section in readme

View File

@@ -3,6 +3,6 @@
*/ */
export const commitinfo = { export const commitinfo = {
name: '@git.zone/tsbundle', name: '@git.zone/tsbundle',
version: '2.5.1', version: '2.5.2',
description: 'a multi-bundler tool supporting esbuild, rolldown, and rspack for painless bundling of web projects' description: 'a multi-bundler tool supporting esbuild, rolldown, and rspack for painless bundling of web projects'
} }

View File

@@ -1,7 +1,5 @@
{ {
"compilerOptions": { "compilerOptions": {
"experimentalDecorators": true,
"useDefineForClassFields": false,
"target": "ES2022", "target": "ES2022",
"module": "NodeNext", "module": "NodeNext",
"moduleResolution": "NodeNext", "moduleResolution": "NodeNext",