Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore target from tsconfig when env is set in SWC config #137

Open
3 tasks done
yjaaidi opened this issue Apr 8, 2024 · 0 comments
Open
3 tasks done

Ignore target from tsconfig when env is set in SWC config #137

yjaaidi opened this issue Apr 8, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@yjaaidi
Copy link

yjaaidi commented Apr 8, 2024

Clear and concise description of the problem

When env is set in SWC configuration and compilerOptions.target is set in tsconfig, SWC will produce the following error:
Error: `env` and `jsc.target` cannot be used together

Suggested solution

Do not set jsc.target to compilerOptions.target if env option is provided.

Alternative

No response

Additional context

No response

Validations

@yjaaidi yjaaidi added the enhancement New feature or request label Apr 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant