awesome-typescript-loader
awesome-typescript-loader copied to clipboard
Added error handling in case if reading tsconfig fails
I got the following error when was trying to setup typescript for an existing project:
Cannot read property 'compilerOptions' of undefined
After spending some time debugging I found out that current implementation doesn't check readConfigFile output and just passes it to parseJsonConfigFileContent which tries to access compilerOptions property. In this PR I added some error handling logic to let users know about the actual error in case if there is an issue with their tsconfig file.