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