       func = new Function \
         'exports', '__filename', '__dirname', 'svgtiler', 'preact', code
       #runWithMapping @, ->
-      func @module, _filename, _dirname, svgtiler,
+      func @exports, _filename, _dirname, svgtiler,
         (if code.includes 'preact' then require 'preact')
     if @settings.verbose
-      console.log "# Module #{@filename} exported {#{Object.keys(@module).join ', '}}"
-    super (@module.map ? @module.default), @constructor.optsFrom @module
+      console.log "# Module #{@filename} exported {#{Object.keys(@exports).join ', '}}"
+    super (@exports.map ? @exports.default), @constructor.optsFrom @exports
   walkDeps: (filename) ->
     deps = new Set
     recurse = (modname) =>

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

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