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

JS/TS: Remove logging from production code/builds #235

Open
bjornharrtell opened this issue Sep 5, 2022 · 2 comments
Open

JS/TS: Remove logging from production code/builds #235

bjornharrtell opened this issue Sep 5, 2022 · 2 comments

Comments

@bjornharrtell
Copy link
Member

No description provided.

@bjornharrtell bjornharrtell self-assigned this Sep 5, 2022
@bjornharrtell
Copy link
Member Author

bjornharrtell commented Sep 5, 2022

TypeScript tsc is missing capability to conditionally omit in compilation (microsoft/TypeScript#3538).

A possible option is to switch to esbuild and use https://github.com/zziger/esbuild-ifdef.

@bjornharrtell
Copy link
Member Author

esbuild is only suited for bundles not pure TypeScript transpilation... swc seems a better candidate but has no plugin for preprocess/ifdef. :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant