Twisting the Ends

We add stub implementations of “module” and “exports” to our Karma preprocessor, which allows us to load and run any module that doesn’t use require(). Next, we move our require() stub into the CommonJS bridge file and start looking at how to make it work for real.

comments powered by Disqus