// TS config for ESLint, editor plugins, and other tools that look-up and use
// the default tsconfig.json file.
{
  // Relative path, as some tools relying on this config do not support Node's
  // module resolution mechanics.
  "extends": "./config/typescript/base.json",

  "compilerOptions": {
    // BEWARE: Different settings are likely to transform dynamic import()
    // statements in the code, thus breaking Webpack's code splitting.
    // See: https://davidea.st/articles/webpack-typescript-code-split-wont-work
    "module": "ESNext",
    "moduleResolution": "Node",

    "paths": {
      "*": ["./src/shared/*", "./src/*", "./*"]
    },
    "rootDirs": [".", "build/types-scss"]
  }
}
