Answers for "typescript path alias tsconfig"

0

typescript tsconfig.json file

{
  "compilerOptions": {
    "module": "esnext",
    "target": "es2016",
    "jsx": "react-jsx",
    "strictFunctionTypes": true,
    "sourceMap": true,
    "outDir": "./build",
    "lib": ["dom", "dom.iterable", "esnext"],
    "allowJs": true,
    "skipLibCheck": true,
    "esModuleInterop": true,
    "allowSyntheticDefaultImports": true,
    "strict": true,
    "forceConsistentCasingInFileNames": true,
    "noFallthroughCasesInSwitch": true,
    "moduleResolution": "node",
    "resolveJsonModule": true,
    "isolatedModules": true,
    "noEmit": true
  },
  "exclude": ["node_modules", "**/node_modules/*"],
  "include": ["src", "electron/renderer.ts"]
}
Posted by: Guest on July-23-2021
-1

build with tsconfig-paths

{
  "scripts": {
    "start": "node -r tsconfig-paths/register -r ts-node                 
              ./src/index/ts",
    "build": "tsc --project tsconfig.json && tscpaths -p
              tsconfig.json -s ./src -o ./dist"
  }
}
Posted by: Guest on October-01-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language