{
  "compilerOptions": {
    "outDir": "./dist/esm",
    "declaration": true,
    "declarationMap": true,
    "noImplicitAny": true,
    "sourceMap": true,
    "module": "es2015",
    "moduleResolution": "node",
    "noEmitOnError": true,
    "target": "es5",
    "jsx": "react",
    "strictNullChecks": true,
    "importHelpers": true,
    "rootDirs": ["./src/", "./test/", "./demo/"]
  },
  "include": ["./src/**/*", "./demo/**/*"],
  "exclude": ["node_modules", "./test/**/*"]
}

{
  "compilerOptions": {
    "baseUrl": "./dist/esm",
    "outDir": "./dist/esm",
    "declaration": true,
    "declarationMap": true,
    "noImplicitAny": true,
    "sourceMap": true,
    "module": "es2015",
    "moduleResolution": "node",
    "noEmitOnError": true,
    "target": "es5",
    "jsx": "react",
    "strictNullChecks": true,
    "importHelpers": true,
    "rootDirs": ["./src/", "./test/", "./demo/"]
  },
  "include": ["./src/**/*", "./demo/**/*"],
  "exclude": ["node_modules", "./test/**/*"]
}

Set baseUrl in TypeScript config
Set baseUrl in TypeScript config

Fixes incorrect source paths in generated source maps.
