transform-require

0.1.0-alpha.0 • Public • Published

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)

Readme

Keywords

none

Package Sidebar

Install

npm i transform-require

Weekly Downloads

0

Version

0.1.0-alpha.0

License

MIT

Last publish

Collaborators

  • rtsao