global-lookup-shim

0.1.0 • Public • Published

Browserify Global Lookup Shim

Why?

Sometimes when you are distributing a standalone lib you want to exclude files from the library. Instead you want them to be looked up on the window. That is where browserify-global-lookup comes in handy.

How to use

browserify src/index.js \
  --standalone Module \
  --external backbone \
  --external underscore \
  | global-lookup-shim.js \
  --global-shim underscore:_ \
  --global-shim backbone:Backbone \
  > dist/build.js

Readme

Keywords

none

Package Sidebar

Install

npm i global-lookup-shim

Weekly Downloads

1,115

Version

0.1.0

License

none

Last publish

Collaborators

  • samccone