Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stefanpenner/1308c1fdcb179262a65f to your computer and use it in GitHub Desktop.
Save stefanpenner/1308c1fdcb179262a65f 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