Quick example of a corner cases that you can't use the loader api to implement @wycats @domenic @BrendanEich https://gist.github.com/calvinmetcalf/a3ea472be21c21169310 …
-
-
@wycats@domenic@BrendanEich no loader api hook to prevent evaluation (based on experience here https://github.com/calvinmetcalf/es6-translate …) -
@wycats@domenic@BrendanEich I was mistaken about node status, I meant to bring that up in a loader question -
@CWMma@domenic@BrendanEich Can you describe what aspect of this is unimplementable? -
@wycats@domenic@BrendanEich you may specify dependencies in the instantiate hook, but no ability to control when they are evaluated -
@CWMma@domenic@BrendanEich You can implement `require` as a provided function. -
@wycats@domenic@BrendanEich yes bit you can't statically analyze the deps but defer evaluation until the function is called -
@CWMma@domenic@BrendanEich Why do you have to do that? -
@wycats@domenic@BrendanEich to load the script statically and take advantage of loader hooks - 6 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.