browserify-transform-tools
Advanced tools
Comparing version 1.2.2 to 1.3.0
@@ -36,3 +36,3 @@ // Generated by CoffeeScript 1.6.3 | ||
} | ||
transform = function(file) { | ||
transform = function(file, opts) { | ||
var configData, content, end, write; | ||
@@ -64,4 +64,4 @@ configData = transform.configData != null ? transform.configData : loadConfig.loadTransformConfigSync(transformName, file, options); | ||
configData: configData, | ||
configData: configData, | ||
config: configData != null ? configData.config : void 0 | ||
config: configData != null ? configData.config : void 0, | ||
opts: opts | ||
}; | ||
@@ -68,0 +68,0 @@ return transformFn(content, transformOptions, function(err, transformed) { |
{ | ||
"name": "browserify-transform-tools", | ||
"version": "1.2.2", | ||
"version": "1.3.0", | ||
"description": "Utilities for writing browserify transforms.", | ||
@@ -5,0 +5,0 @@ "main": "./lib/transformTools.js", |
@@ -55,3 +55,3 @@ This package contains tools for helping you write [transforms](https://github.com/substack/node-browserify#btransformtr) for [browserify](https://github.com/substack/node-browserify). | ||
a callback which must be called, passing the a string with the transformed contents of the | ||
file. transformOptions consists of: | ||
file. `transformOptions` consists of: | ||
@@ -65,2 +65,4 @@ * `transformOptions.file` is the name of the file (as would be passed to a normal browserify transform.) | ||
* `transformOptions.opts` is an object containing any options that have been supplied to the transform (for instance, with Browserify's `b.transform` API.) | ||
* `options.excludeExtensions` - A list of extensions which will not be processed. e.g. | ||
@@ -67,0 +69,0 @@ "['.coffee', '.jade']" |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
81076
150