add support for bundling both esm and cjs versions

This commit is contained in:
2024-10-25 12:09:56 -05:00
parent afebfe75b1
commit 7a5b027c68
5 changed files with 45 additions and 10 deletions
+7 -7
View File
@@ -1,12 +1,12 @@
{
"compilerOptions": {
"moduleResolution": "Node",
"lib": ["ESNext"],
"target": "ESNext",
"esModuleInterop": true,
"module": "commonjs",
"target": "ES2020",
"declaration": true,
"rootDir": "./src",
"strict": true,
"outDir": "dist"
"isolatedModules": true,
"rootDir": "src/",
"strict": true
},
"exclude": ["node_modules", "dist", "examples"]
"include": ["src/"]
}