fix(build): force a compatible baseURL for systemjs-builder

Closes #7167

Closes #7360
This commit is contained in:
Tero Parviainen 2016-03-01 18:32:37 +02:00 committed by Misko Hevery
parent 016f0d8e9e
commit e0c83f669e
1 changed files with 1 additions and 0 deletions

View File

@ -13,6 +13,7 @@ module.exports.bundle = function(buildConfig, moduleName, outputFile, outputConf
var Builder = require('systemjs-builder');
var builder = new Builder();
builder.config(buildConfig);
builder.loader.baseURL = 'file:' + process.cwd() + '/';
if (sfx) {
return builder.buildSFX(moduleName, outputFile, outputConfig);
} else {