awesome-typescript-loader
awesome-typescript-loader copied to clipboard
Option configFileContent cannot set target, jsx
When I pass {jsx: 'react'} to configFileContent, it doesn't work.
So I checked the source code and found the problem, as shown below.
instance.ts file

In the function parseJsonConfigFileContent, the forth parameter will cover the first paramter. At the same time, the code tsImpl.getDefaultCompilerOptions() always return {jsx:1, target:1}. So whatever I pass to configFileContent, the jsx is set 1 and target is set 1.
I think it's a bug to be fixed.