Skip to content

__DEV__ mode doesn't initialize trackJs #3

Open
@junseld

Description

@junseld

Hey,
you wrote that you did that because there is too much noise in dev builds.
But when you use e.g. trackJs.track(...) in your code, it should fail because trackJs is not defined.
Do you always have null/undefined checks whenever you do that?

can't we just set config.enabled = false (or leave it to the developer to do that)?
or can you add an additional parameter that can bypass that if (__DEV__) check?

e.g.
function init(config, forceInit) { if (__DEV__ && !forceInit) { return; } ... }

Thanks,
and sorry if you are to busy with other stuff and don't want to invest any time in this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions