0.1.0-alpha.0 • Published 8 years ago
transform-require v0.1.0-alpha.0
transform-require
A node require hook for running browserify transforms
please note this is still highly experimental
usage
var transformHook = require('transform-require');
transformHook('.js');
// now all subsequent requires for .js files will be transformed
transform-require
detects which, if any package-level transforms are needed for a given file and then applies them.
By default, transform-require
ignores node_modules.
known limitations
- Unlike with browserify transforms, you must enumerate the file extensions for which the require hook will apply the transforms. (With browserify, all requires, regardless of extension are transformed by default)
0.1.0-alpha.0
8 years ago