Skip to content

[FEATURE] Allow Debug.log calls while compiling with the --optimize flag #128

@passiomatic

Description

@passiomatic

Is your feature request related to a problem? Please describe.
It is annoying to manually comment/remove the Debug.log lines to be able to compile an app with the --optimize flag, because it is likely that, while returning on a project, the debug messages once removed will come in handy again.

Describe the solution you'd like
Guida should avoid to output console messages while compiling with the --optimize flag. In practice, this could mean to replace the current Debug.log implementation with an "identity" function that returns the given argument to the caller.

Related Elm Features
The feature is already implemented in Lamdera while using the deploy and check commands. Please see this PR lamdera/compiler#8 and in particular this commit lamdera/compiler@3616c00

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions