CH17 / E112|The Karma-CommonJS Bridge|Wed, 3 July ’13
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.