Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(compiler): match tsconfig include paths properly (#4676)
this commit fixes a bug where a user was unable to use relative paths in the `include` property of their `tsconfig.json` file if `srcDir` was also specified. previously, when `tsconfig.json#include` contained a relative path: ``` "include": [ "./app/javascript" ], ``` and `tsconfig.json#srcDir` included the non-relative version of that path: ``` srcDir: 'app/javascript', ``` then you would receive a very confusing error: ``` [ WARN ] tsconfig.json "include" required In order for TypeScript to improve watch performance, it's recommended the "tsconfig.json" file should have the "include" property, with at least the app's "app/javascript" directory listed. For example: "include": ["app/javascript"] ``` closes #4667
- Loading branch information