Verify that compiler for extension hasn't been loaded

This commit is contained in:
Richard Ramos 2018-05-26 12:58:55 -04:00 committed by Jonathan Rainville
parent fd1b9d80f9
commit 3dd4b2ada9
1 changed files with 2 additions and 1 deletions

View File

@ -16,7 +16,8 @@ class Compiler {
let pluginCompilers = self.plugins.getPluginsProperty('compilers', 'compilers'); let pluginCompilers = self.plugins.getPluginsProperty('compilers', 'compilers');
pluginCompilers.forEach(function (compilerObject) { pluginCompilers.forEach(function (compilerObject) {
available_compilers[compilerObject.extension] = compilerObject.cb; if(available_compilers[compilerObject.extension] === undefined)
available_compilers[compilerObject.extension] = compilerObject.cb;
}); });
let compiledObject = {}; let compiledObject = {};