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.