Skip to content
This repository has been archived by the owner on Dec 1, 2019. It is now read-only.

Option configFileContent cannot set target, jsx #630

Open
RhysXia opened this issue Apr 3, 2019 · 0 comments
Open

Option configFileContent cannot set target, jsx #630

RhysXia opened this issue Apr 3, 2019 · 0 comments

Comments

@RhysXia
Copy link

RhysXia commented Apr 3, 2019

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 RhysXia changed the title Option configFileContent cannot set target, jsx Option configFileContent cannot set target, jsx Apr 3, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant