chore: adds Windows support for build

Closes #104
This commit is contained in:
Marc Laval
2014-10-27 17:32:55 +01:00
committed by Misko Hevery
parent 87b0d3fcc5
commit e1c84e02f8
2 changed files with 6 additions and 3 deletions

View File

@ -61,8 +61,9 @@ function loadModule(filepath, transpile) {
}
if (transpile) {
var moduleName = filepath
var moduleName = path.normalize(filepath)
.replace(__dirname, 'transpiler')
.replace(/\\/g, '/')
.replace(/\.\w*$/, '');
data = (new traceur.NodeCompiler(
extend(SELF_COMPILE_OPTIONS, { moduleName: moduleName } )