Skip to content

dist broken, process.env !== 'production' instead of process.env.NODE_ENV !== 'production' #423

Closed
@CanRau

Description

@CanRau

Title basically says it all, not sure what happens, I installed latest theme-ui 0.2.44 and all index files in /dist are missing the NODE_ENV part from this line packages/theme-ui/src/provider.js#L87

so it looks like

if (process.env !== 'production') {
    if (outer.emotionVersion !== package_json.version) {

I'm using it with typescript, webpack and electron

Fixing the line manually in node_modules works fine

Update: in another electron project, using babel instead of typescript is works despite the fact that the lines look the same and NODE_ENV is missing as well

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