Pass config options to package transpilers

This commit is contained in:
Michelle Tilley
2016-10-29 14:38:25 -07:00
parent ad448184b4
commit 4f7b22c84e

View File

@@ -107,7 +107,7 @@ PackageTranspilationRegistry.prototype.transpileWithPackageTranspiler = function
if (transpilerPath) {
this.transpilerPaths[transpilerPath] = true
var transpiler = require(transpilerPath)
var result = transpiler.compile(sourceCode, filePath)
var result = transpiler.compile(sourceCode, filePath, config.options || {})
if (result === undefined) {
return sourceCode
} else {