CH17 / E114|The Karma-CommonJS Bridge|Wed, 10 July ’13
Labelling the Vat
Our CommonJS bridge works, but it only supports a single, hard-coded module. In this episode, we update our implementation of require() to load dependencies by name. We store modules into an object (keyed by full path) and write some bare-bones path normalization code.