 fs = Npm.require 'fs'
 
 processFile = (step) ->
-
+  
   # check for extension as filename
   checkFilename step
 

  # set the readable stream's encoding so we read strings from it
  bundle.setEncoding('utf8')

  # 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

    # read the generated source map from the file
    sourceMap = fs.readFileSync step.fullInputPath+'.map'

    # 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
      sourceMap:  sourceMap
      bare:       step?.fileOptions?.bare

  catch e
