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

fix: replace debug with a util debug function #34

Merged
merged 1 commit into from
Nov 27, 2021
Merged

Conversation

josdejong
Copy link
Owner

@milahu can you have a look at this PR?

For reference: #33, #31.

@josdejong
Copy link
Owner Author

I would like to see if it is possible to use some environment variable of Svelte to detect whether running in development or production, and use that to enable/disable logging. It would be cool to see if we can utilize dead code elimination of all the debug lines when in production.

@milahu
Copy link
Contributor

milahu commented Nov 27, 2021

lgtm : )

dead code elimination

can we micro optimize this later? ; )

@josdejong
Copy link
Owner Author

Thanks.

can we micro optimize this later? ; )

😂 yes. This new solution already has much less lines of code, so it's already an improvement anyway.

@josdejong josdejong merged commit ddf608a into main Nov 27, 2021
@josdejong josdejong deleted the fix/replace_debug branch November 27, 2021 18:10
@josdejong
Copy link
Owner Author

Published now in v0.3.6

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

Successfully merging this pull request may close these issues.

2 participants