Skip to content
This repository has been archived by the owner on Jul 13, 2020. It is now read-only.

Commit

Permalink
rename transpiler modules
Browse files Browse the repository at this point in the history
  • Loading branch information
guybedford committed Mar 7, 2015
1 parent e23ad7e commit d0fec4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/transpiler.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

Loader.prototype.transpile = function(load) {
if (!transpiler) {
transpilerModule = this.get('@' + this.transpiler);
transpilerModule = this.get(this.transpiler);

if (transpilerModule) {
transpilerModule = transpilerModule['default'];
Expand All @@ -24,7 +24,7 @@
}
if (!transpilerModule)
throw new TypeError('Include Traceur or Babel for module syntax support.');
this.set('@' + this.transpiler, this.newModule({ 'default': transpilerModule, __useDefault: true }));
this.set(this.transpiler, this.newModule({ 'default': transpilerModule, __useDefault: true }));
}

if (this.transpiler == 'babel')
Expand Down

0 comments on commit d0fec4b

Please # to comment.