diff --git a/build/lib/tsb/builder.js b/build/lib/tsb/builder.js index 1a08badd113..71c7a78e9a1 100644 --- a/build/lib/tsb/builder.js +++ b/build/lib/tsb/builder.js @@ -294,7 +294,7 @@ function createTypeScriptBuilder(config, projectFile, cmd) { const jsValue = value.files.find(candidate => candidate.basename.endsWith('.js')); if (jsValue) { outHost.addScriptSnapshot(jsValue.path, new ScriptSnapshot(String(jsValue.contents), new Date())); - toBeCheckedForCycles.push(jsValue.path); + toBeCheckedForCycles.push(normalize(jsValue.path)); } }).catch(e => { // can't just skip this or make a result up.. diff --git a/build/lib/tsb/builder.ts b/build/lib/tsb/builder.ts index 94fcf1483db..3ca3a0d6ead 100644 --- a/build/lib/tsb/builder.ts +++ b/build/lib/tsb/builder.ts @@ -315,7 +315,7 @@ export function createTypeScriptBuilder(config: IConfiguration, projectFile: str const jsValue = value.files.find(candidate => candidate.basename.endsWith('.js')); if (jsValue) { outHost.addScriptSnapshot(jsValue.path, new ScriptSnapshot(String(jsValue.contents), new Date())); - toBeCheckedForCycles.push(jsValue.path); + toBeCheckedForCycles.push(normalize(jsValue.path)); } }).catch(e => {