preactjs / preact-compat

ATTENTION: The React compatibility layer for Preact has moved to the main preact repo.
http://npm.im/preact-compat
MIT License
950 stars 148 forks source link

Adding Aliasify global transform options #510

Closed evandeininger closed 5 years ago

evandeininger commented 5 years ago

Unfortunately Browserify says you can't make global transforms from package.json: https://github.com/browserify/browserify#btransformtr-opts "If opts.global is true, the transform will operate on ALL files, despite whether they exist up a level in a node_modules/ directory. Use global transforms cautiously and sparingly, since most of the time an ordinary transform will suffice. You can also not configure global transforms in a package.json like you can with ordinary transforms."