Skip to content

Test if process is defined in browser #2676

Closed
@pelikhan

Description

@pelikhan

Hello all!

First thanks for this very well written library. It's a breeze to work with it.

I am hitting a snag when compiling graphql into a ES6 library. The node.js process object is queried in a mjs file which crashes in the browser. It would be great to add a check to make sure process is defined.

export default process.env.NODE_ENV === 'production'

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions