diff --git a/src/app.js b/src/app.js index e54ffcd4ea..5aa1bab10c 100644 --- a/src/app.js +++ b/src/app.js @@ -694,11 +694,12 @@ var run = function () { }) function runCompiler () { - var files = {} + editorSyncFile() if (currentFile) { var target = currentFile - files[target] = editor.get(currentFile) - compiler.compile(files, target) + var sources = {} + sources[target] = files.get(target) + compiler.compile(sources, target) } }