So I was trying to compare the output compiled code by these 2 combinations.
ts-loader
  {
    test: /\.tsx?$/,
    use: 'ts-loader',
  }
babel-loader
  use: {
      loader: 'babel-loader',
      options: {
        presets:
          [
            "@babel/preset-react",
            "@babel/preset-typescript",
          ]
      }
    }
- I get compiling times for babel-loader lower than for ts-loader.
- Also, ts-loader looks to be using babel under the hood, at least it's in its dependencies.
- Also, babel-loader allows to use cache with cacheDirectory
Questions
- Is there any way to use cache in ts-loader like the cacheDirectory in babel?
- Any other benefits in using ts-loader instead of babel-loader?
 
     
    