Skip to content

Commit

Permalink
use latest loader versions, polish transpiler switching
Browse files Browse the repository at this point in the history
  • Loading branch information
guybedford committed Jan 29, 2015
1 parent bc74b2e commit a6f20ac
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions lib/core.js
Expand Up @@ -182,9 +182,9 @@ var ghh = 'https://raw.githubusercontent.com/';

// we always download the latest semver compatible version
var lVersions = {
esml: '^0.11.0',
system: '^0.11.0',
traceur: '^0.0.79',
esml: '^0.12.0',
system: '^0.12.0',
traceur: '^0.0.82',
'6to5': '^3.0.0'
};

Expand Down Expand Up @@ -248,12 +248,13 @@ exports.dlLoader = function(parserName, unminified, edge) {
var min1 = unminified ? '.src' : '';
var min2 = unminified ? '' : '.min';

var to5 = parserName == '6to5';
var using = {};
var to5;

return config.load()
.then(function() {
parserName = parserName || config.loader.parser;
to5 = parserName == '6to5';
return asp(mkdirp)(config.pjson.packages);
})
.then(function() {
Expand Down

0 comments on commit a6f20ac

Please sign in to comment.