   # set the readable stream's encoding so we read strings from it
   bundle.setEncoding('utf8')
 
+  # extract the source map content from the generated file to give to Meteor
+  # explicitly by piping bundle thru `exorcist`
+  bundle = bundle.pipe exorcist step.fullInputPath+'.map', step.pathForSourceMap
+
   # use Meteor.wrapAsync to wrap `getString` so it's done synchronously
   wrappedFn = Meteor.wrapAsync getString
 

    # call our wrapped function with the readable stream as its argument
    string = wrappedFn bundle

    # now that we have the compiled result as a string we can add it using CompileStep
    # inside try-catch because this shouldn't run when there's an error.
    step.addJavaScript
      path:       step.inputPath  # name of the file
      sourcePath: step.inputPath  # use same name, we've just browserified it
      data:       string          # the actual browserified results
      bare:       step?.fileOptions?.bare

  catch e

fs = Npm.require 'fs'

processFile = (step) ->
  
  # check for extension as filename
  checkFilename step

