|
|
@ -30,7 +30,8 @@ function Compiler (editor, queryParams, handleGithubCall, updateFiles) { |
|
|
|
files[utils.fileNameFromKey(editor.getCacheFile())] = input; |
|
|
|
files[utils.fileNameFromKey(editor.getCacheFile())] = input; |
|
|
|
gatherImports(files, missingInputs, function (input, error) { |
|
|
|
gatherImports(files, missingInputs, function (input, error) { |
|
|
|
if (input === null) { |
|
|
|
if (input === null) { |
|
|
|
self.event.trigger('compilationFinished', [false, [error], files]); |
|
|
|
self.lastCompilationResult = null; |
|
|
|
|
|
|
|
self.event.trigger('compilationFinished', [false, { 'error': error }, files]); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
var optimize = queryParams.get().optimize; |
|
|
|
var optimize = queryParams.get().optimize; |
|
|
|
compileJSON(input, optimize ? 1 : 0); |
|
|
|
compileJSON(input, optimize ? 1 : 0); |
|
|
|