Skip to content

doesn't work with typeof window !== 'undefined' #21

@Smruti-AT

Description

@Smruti-AT

This is my code
image
When I use the bundled code, always the second if block i.e
/// #if typeof window === 'undefined'
is always executed.
Any other way of importing files which are specific to browsers/node.
PS: I'm trying to use a single file as the SDK to be used in both browser as well as node using webpack-conditional-loader

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