Context:
Typescript,
custom module with target environment react
source code: https://github.com/bingomanatee/wonderlandlabs-monorepo/tree/main/packages/forestry
continually getting “exports is not defined”
tried setting moudle/target in TSconfig:
{
"compilerOptions": { "target": "ESNext",
"module": "ESNext", "declaration": true, "outDir": "./lib", "downlevelIteration": true, "isolatedModules": false, "strict": false, "moduleResolution": "node", "types": [
"jest",
"node",
"@types/jest"
], "esModuleInterop": true, "resolveJsonModule": true,
"skipLibCheck": true, },
"include": [
"src",
],
"exclude": [
"node_modules",
"__tests__
"lib
"lib
],
"rules": {
"@typescript-eslint/ban-ts-comment": false
}
}
what am I missing?