diff --git a/tsconfig.json b/tsconfig.json index a219990ad..a71aa20ed 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,28 +1,30 @@ { "compilerOptions": { - "baseUrl": "./", - "outDir": "dist", - "sourceMap": true, - "strict": true, - "module": "ESNext", - "lib": ["ESNext", "DOM"], "target": "ESNext", - "jsx": "react-jsx", - "allowJs": true, - "isolatedModules": true, - "noUnusedLocals": true, - "noFallthroughCasesInSwitch": true, - "noUncheckedSideEffectImports": true, - "moduleResolution": "Bundler", - "resolveJsonModule": true, - "esModuleInterop": true, + "lib": ["ESNext", "DOM", "DOM.Iterable"], + "module": "ESNext", "skipLibCheck": true, + "outDir": "dist", "paths": { - "soapbox/*": ["src/*"], + "soapbox/*": ["./src/*"], }, "types": [ "vite/client", "@webbtc/webln-types" - ] + ], + + /* Bundler mode */ + "moduleResolution": "Bundler", + "allowImportingTsExtensions": true, + "isolatedModules": true, + "moduleDetection": "force", + "noEmit": true, + "jsx": "react-jsx", + + /* Linting */ + "strict": true, + "noUnusedLocals": true, + "noFallthroughCasesInSwitch": true, + "noUncheckedSideEffectImports": true } }