refactor: Update import statements and configurations for ES module compatibility

This commit is contained in:
2025-04-25 00:41:40 +08:00
parent c613ef3f35
commit 1aa97a8a7a
14 changed files with 237 additions and 115 deletions

View File

@@ -1,8 +1,8 @@
{
"compilerOptions": {
"target": "ES2020",
"module": "ESNext",
"moduleResolution": "Node",
"module": "NodeNext",
"moduleResolution": "NodeNext",
"lib": ["ES2020"],
"outDir": "dist",
"rootDir": "src",
@@ -13,7 +13,8 @@
"forceConsistentCasingInFileNames": true,
"resolveJsonModule": true,
"declaration": true,
"sourceMap": true
"sourceMap": true,
"allowSyntheticDefaultImports": true
},
"include": [
"src/**/*"