browser-pack icon indicating copy to clipboard operation
browser-pack copied to clipboard

Remove require in standalone mode

Open ForbesLindesay opened this issue 10 years ago • 2 comments

This allows people to browserify a module that requires a module that has already been bundled using browserify --standalone. This is becoming increasingly popular now that browserify is seen as an easy way to add es6 support to modules that are used in older versions of node.

ForbesLindesay avatar Apr 05 '15 01:04 ForbesLindesay

It's probably worth noting that this method of removing requires should be pretty fast, in contrast to using derequire, which required figuring out the complete scope chain in order to remove requires.

ForbesLindesay avatar Apr 05 '15 01:04 ForbesLindesay

This is being discussed in https://github.com/substack/node-browserify/pull/1151

zertosh avatar Apr 05 '15 13:04 zertosh