       return @isBabelrcInPath path.dirname(fromDir)
     else return false
 
+# simple merge of objects
+  merge: (targetObj, sourceObj) ->
+    for prop, val of sourceObj
+      targetObj[prop] = val
+
 module.exports = Transpiler

    if config.allowLocalOverride
      localConfig = @getLocalConfig pathTo.sourceFileDir, pathTo.projectPath, {}
      # merge local configs with global. local wins
      merge config, localConfig
      # recalc paths
      pathTo = @getPaths sourceFile, config


          detail: "File = #{languageBabelCfgFile}\n\n#{fileContent}"
      else
        # merge local config. config closest sourceFile wins
        @merge  jsonContent, localConfig
        localConfig = jsonContent
    if fromDir isnt toDir
      # stop infinite recursion https://github.com/gandm/language-babel/issues/66
