Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: make tsconfig-paths work with comments in tsconfig.json (#588)
When you run `tsc --init` it creates a tsconfig.json which includes two types of comments: 1. // single line 2. /* multiline */ When using `require()` to load this tsconfig.json with comments it throws an error: `SyntaxError: /path/to/tsconfig.json: Unexpected token / in JSON at position 29` This is why tsconfig-paths uses it's own `loadTsconfig` function to parse that JSON file. So we can simply use that instead of `require()`
- Loading branch information