Skip to content Skip to sidebar Skip to footer
Showing posts with the label Commonjs

How To Browserify A Browserified Module?

The title seems confusing but I'll give an example. Let's say I create a module that uses E… Read more How To Browserify A Browserified Module?

How To Import Part Of Object In Es6 Modules

In the react documentation I found this way to import PureRenderMixin var PureRenderMixin = require… Read more How To Import Part Of Object In Es6 Modules

Using Browserify With A Minified Javascript Library

Can a minified JavaScript library be 'required' and bundled using Browserify? In other word… Read more Using Browserify With A Minified Javascript Library

Jest - Mock A Constant Property From A Module For A Specific Test

So, I'm attempting to do something which on the surface should be very simple... I have some co… Read more Jest - Mock A Constant Property From A Module For A Specific Test

How To Use Umd In Browser Without Any Additional Dependencies

Suppose I have an UMD module like this (saved in 'js/mymodule.js'): (function (global, fact… Read more How To Use Umd In Browser Without Any Additional Dependencies