Skip to content

Logging logic + reliance on process #3

@atepoorthuis

Description

@atepoorthuis

The reference to process here seems to result in issues in browsers since it isn't available there. I think this can be resolved with a rollup plugin but this wouldn't help in Svelte's repl. Perhaps it's better to test if typeof process === 'undefined' instead?

if (!process) console.warn(message)

Also, we should standardize our logging/warning logic here. I would argue we would want to warn during dev and not in production but this seems only include 'test'?

if (process && process.env.NODE_ENV !== 'test') {

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions