Sorry, this video is for subscribers only.

Click here to subscribe!

Extracting the Export Meat

We start our implementation of require() with the simplest possible case: one module dependency. We figure out how to extract its exports into a namespaced global, then hardcode require() to use it. It’s an important first step, and we get it to work. We now have a real CommonJS module dependency working.

comments powered by Disqus