We're updating the issue view to help you get more done. 

NodeJS Foreign Libs Behave Differently With Optimizations

Description

When using `:foreign-libs` in a `:target :nodejs` build, the foreign lib bundle must define variables as `this.EXAMPLE = "value"` instead of just `EXAMPLE = "value"` for `:global-exports` to work with `:optimizations :simple`. However, when `:optimizations :none` is set, the `EXAMPLE = "value"` `:global-exports` works just fine.

Environment

None

Status

Assignee

Unassigned

Reporter

import

Labels

None

Approval

None

Patch

None

Affects versions

1.10.238

Priority

Minor