benbria / browserify-transform-tools

Utilities for writing browserify transforms.
MIT License
65 stars 15 forks source link

Only parse js extensions #3

Closed jwalton closed 10 years ago

jwalton commented 10 years ago

For require and falafel transforms, it would be nice if there was an option to only parse js type files by default. Trying to run a JSON file through a require or falafel transform wouldn't go vey well, for example.

It would be nice if there was a way for end-users to specify what extensions should be processed in the module config, or even for them to specify exactly which files should be processed for performance optimization.

jwalton commented 10 years ago

Fixed via https://github.com/benbria/browserify-transform-tools/commit/010023ce768e7073bab2ffc20f95ef9ad3b54152.