Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
improves baseUrl resolution in typescript monorepos
Typescript configuration can inherit from files above cwd in the filesystem. If a baseUrl was declared in such a file, it would not be picked up by the webpack config. This would force users to use the next-transpile-module and duplicate configuration with unintuitive path relations (see vercel#13197 for a detailed analysis) If baseUrl is resolved it should be used instead of dir as the root include for babel-resolve-loader. An even nicer DX would auto detect the presence of a `paths` section in the typescript config and automatically include `tsconfig-paths-webpack-plugin`
- Loading branch information