ClojureScript

NodeJS Foreign Libs Behave Differently With Optimizations

Details

  • Type: Defect Defect
  • Status: Open Open
  • Priority: Minor Minor
  • Resolution: Unresolved
  • Affects Version/s: 1.10.238
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None

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.

Activity

There are no comments yet on this issue.

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated: