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

Commit d0fec4b

Browse files
committed
rename transpiler modules
1 parent e23ad7e commit d0fec4b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/transpiler.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

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

1515
if (transpilerModule) {
1616
transpilerModule = transpilerModule['default'];
@@ -24,7 +24,7 @@
2424
}
2525
if (!transpilerModule)
2626
throw new TypeError('Include Traceur or Babel for module syntax support.');
27-
this.set('@' + this.transpiler, this.newModule({ 'default': transpilerModule, __useDefault: true }));
27+
this.set(this.transpiler, this.newModule({ 'default': transpilerModule, __useDefault: true }));
2828
}
2929

3030
if (this.transpiler == 'babel')

0 commit comments

Comments
 (0)