You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Browserify finds and acts on these requires regardless of surrounding logic, right? (In other words, no conditional requires)
Perhaps this needs to be removed and replaced with dependency injection? I.e.:
require('sylvester')( require('lapack') )
or
require('sylvester')()
That's kind of a major breaking change though. Disclaimer: just a guess on my part. I haven't tried any of this. Is there an alternate approach to dependency injection that wouldn't break plain require('sylvester')?
Possible workaround: substack states that a solution to the halting problem would enable conditional requires. Looks like there's a node module for that 😉
Activity
rreusser commentedon Aug 14, 2015
Looks like the suspect portion might be
getLapack:Browserify finds and acts on these requires regardless of surrounding logic, right? (In other words, no conditional requires)
Perhaps this needs to be removed and replaced with dependency injection? I.e.:
That's kind of a major breaking change though. Disclaimer: just a guess on my part. I haven't tried any of this. Is there an alternate approach to dependency injection that wouldn't break plain
require('sylvester')?rreusser commentedon Aug 14, 2015
Possible workaround: substack states that a solution to the halting problem would enable conditional requires. Looks like there's a node module for that 😉
DavidBruant commentedon Aug 14, 2015
Blarf! I'll stick to
--ignoreas a workaround for now :-p