Skip to content

Instantly share code, notes, and snippets.

@joliss
Created July 19, 2015 13:35
Show Gist options
  • Save joliss/8c15a4e2825071c039b7 to your computer and use it in GitHub Desktop.
Save joliss/8c15a4e2825071c039b7 to your computer and use it in GitHub Desktop.
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