           console.warn "Unsupported data type #{typeof value} in looking up Maketile rule '#{key}'"
           value = undefined
       value
-    recurse @module?.make ? @module?.default
+    recurse @exports?.make ? @exports?.default
     executed
   doInit: ->
     if @settings.verbose and @init?

        filename: @filename
      }
      #console.log code
      @module = {}
      ## Mimick NodeJS module's __filename and __dirname variables
      ## [https://nodejs.org/api/modules.html#modules_the_module_scope]
      _filename = path.resolve @filename

      #  }
      #  console.log code
      pirates?.settings = @settings
      #@exports = runWithMapping @, -> require filename
      @exports = require filename
      @walkDeps filename
      #console.log filename, @exports
    else
      ## But if file has been explicitly loaded (e.g. in browser),
      ## compile manually and simulate module.
