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

Java 7 + Rhino 1.7r3 Support For Commonjs Modules?

I need help getting CommonJS working on Java 7 and Rhino 1.7R3. Rhino 1.7R3 supports CommonJS modul… Read more Java 7 + Rhino 1.7r3 Support For Commonjs Modules?

What Is The Benefit Of A 'promise' Abstraction In Commonjs?

I'm reading this article and the section on the promise abstraction seems a little overly compl… Read more What Is The Benefit Of A 'promise' Abstraction In Commonjs?

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

How To Solve Circular Dependency In Require.js?

Basically, the idea is that 'sub' module creates an object, and that object should be part … Read more How To Solve Circular Dependency In Require.js?

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

Requiring External JavaScript File

After reading all the relevant answers in SO and posts in the Appcelerator forums I still can't… Read more Requiring External JavaScript File

What Is The Benefit Of A 'promise' Abstraction In CommonJS?

I'm reading this article and the section on the promise abstraction seems a little overly compl… Read more What Is The Benefit Of A 'promise' Abstraction In CommonJS?

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