mirror of
https://github.com/atom/atom.git
synced 2026-01-25 14:59:03 -05:00
Pass config options to package transpilers
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user