awesome-typescript-loader icon indicating copy to clipboard operation
awesome-typescript-loader copied to clipboard

Option configFileContent cannot set target, jsx

Open RhysXia opened this issue 6 years ago • 0 comments

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

1`RAZ9 MH{I39{$CABTFKJ8

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.

RhysXia avatar Apr 03 '19 07:04 RhysXia