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

Commit

Permalink
Traceur and Babel file URL fix on Windows (#342)
Browse files Browse the repository at this point in the history
  • Loading branch information
guybedford committed Apr 4, 2015
1 parent 5118a24 commit cd875cd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.js
Expand Up @@ -2,15 +2,15 @@ var System = require('./dist/es6-module-loader.src');

System.transpiler = 'traceur';
try {
System.paths.traceur = require.resolve('traceur/bin/traceur.js');
System.paths.traceur = 'file:' + require.resolve('traceur/bin/traceur.js');
}
catch(e) {}
try {
System.paths.babel = require.resolve('babel-core/browser.js');
System.paths.babel = 'file:' + require.resolve('babel-core/browser.js');
}
catch(e) {}
try {
System.paths.babel = System.paths.babel || require.resolve('babel/browser.js');
System.paths.babel = System.paths.babel || 'file:' + require.resolve('babel/browser.js');
}
catch(e) {}

Expand Down

0 comments on commit cd875cd

Please sign in to comment.