externalify
Browserify transform that lets you require external modules from any function that follows the require API.
Much like the external
option to Browserify, but lets you specify a custom name for the require
function to avoid creating a global require
symbol.
Using via JavaScript
var browserify = ; // configure what we want to externalizevar externalifyConfig = external: jquery: '$' three: 'THREE' ;
Using via Commandline
Use the Browserify transform option:
browserify --debug -t [ exposify --external [ --jquery=$ --three=THREE ] ] exposify main > bundle.js
Installation
npm install exposify
License
MIT