See cujojs/cram#47
curl.js can't deterministically handle the node-like way that wire and when import values (i.e. require('foo').value). Depending on the current graph of dependencies, curl may or may not have finished exporting the values of 'foo' before it is imported.
Specifically, wire/cram/builder is receiving an undefined value when importing when/unfold via unfold = require('when/unfold'); because when/unfold exports via return require('./when').unfold;.
There are multiple ways to fix this problem. We should start a discussion.
See cujojs/cram#47
curl.js can't deterministically handle the node-like way that wire and when import values (i.e.
require('foo').value). Depending on the current graph of dependencies, curl may or may not have finished exporting the values of 'foo' before it is imported.Specifically, wire/cram/builder is receiving an undefined value when importing when/unfold via
unfold = require('when/unfold');because when/unfold exports viareturn require('./when').unfold;.There are multiple ways to fix this problem. We should start a discussion.