From 3dd4b2ada93552afd9031c6683ef227c4e1a5a4c Mon Sep 17 00:00:00 2001 From: Richard Ramos Date: Sat, 26 May 2018 12:58:55 -0400 Subject: [PATCH] Verify that compiler for extension hasn't been loaded --- lib/contracts/compiler.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/contracts/compiler.js b/lib/contracts/compiler.js index e6c4fc23..75ce08f9 100644 --- a/lib/contracts/compiler.js +++ b/lib/contracts/compiler.js @@ -16,7 +16,8 @@ class Compiler { let pluginCompilers = self.plugins.getPluginsProperty('compilers', 'compilers'); pluginCompilers.forEach(function (compilerObject) { - available_compilers[compilerObject.extension] = compilerObject.cb; + if(available_compilers[compilerObject.extension] === undefined) + available_compilers[compilerObject.extension] = compilerObject.cb; }); let compiledObject = {};