The ability to reply to discussions is limited to PRO members. Want to join in the discussion? Click here to subscribe now.

Add a browser build to an npm module

Add a browser build to an npm module

6:16
Currently, our library is being distributed as a CommonJS module, but we should support the browser as well. In this lesson, we're going to use [`webpack`](http://webpack.github.io/) to create a [`UMD`](https://github.com/umdjs/umd) (Universal Module Definition) build of our module so users can consume it in a browser.
Watch this lesson now
Avatar
egghead.io

Currently, our library is being distributed as a CommonJS module, but we should support the browser as well. In this lesson, we're going to use webpack to create a UMD (Universal Module Definition) build of our module so users can consume it in a browser.

HEY, QUICK QUESTION!
Joel's Head
Why are we asking?