Skip to content

Commit

Permalink
Merge pull request #4 from klaftertief/buffer-contents
Browse files Browse the repository at this point in the history
Set the transformed content as a Buffer
  • Loading branch information
RobLoach committed Oct 6, 2015
2 parents e9486c0 + f8ceffa commit b60dbf4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ module.exports = function (opts) {
files[file].jstransformer_outputFormat = transformer.outputFormat
// Remove an extension from the end.
files[file].jstransformer_filepath.pop()
files[file].contents = result.body
files[file].contents = new Buffer(result.body)
done()
}, function (err) {
files[file].jstransformer_done = true
Expand Down

0 comments on commit b60dbf4

Please sign in to comment.