Forked from joliss/broccoli-babel-transpiler.patch
Last active
August 29, 2015 14:25
-
-
Save stefanpenner/1308c1fdcb179262a65f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/index.js b/index.js | |
index 2ec4b85..d010a51 100644 | |
--- a/index.js | |
+++ b/index.js | |
@@ -59,9 +59,9 @@ Babel.prototype = Object.create(Filter.prototype); | |
Babel.prototype.constructor = Babel; | |
Babel.prototype.targetExtension = ['js']; | |
-Babel.prototype.rebuild = function() { | |
+Babel.prototype.build = function() { | |
var self = this; | |
- return Filter.prototype.rebuild.call(this).then(function() { | |
+ return Filter.prototype.build.call(this).then(function() { | |
if (self.exportModuleMetadata) { | |
fs.writeFileSync(self.outputPath + path.sep + 'dep-graph.json', stringify(self.moduleMetadata, { | |
space: 2 | |
@@ -89,7 +89,7 @@ Babel.prototype.processString = function (string, relativePath) { | |
if (transpiled.metadata && transpiled.metadata.modules) { | |
this.moduleMetadata[key] = transpiled.metadata.modules; | |
} | |
- | |
+ | |
return transpiled.code; | |
}; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment