Permalink
Browse files

Revert "Revert "Return JSON as string. yaml-loader should be chained …

…with json-loader.""

This reverts commit 8145fb4.
  • Loading branch information...
1 parent 3379705 commit be01b65f5caa694996d02971fa3653c87165bf51 @okonet committed Jul 22, 2016
Showing with 1 addition and 1 deletion.
  1. +1 −1 index.js
View
@@ -3,5 +3,5 @@ var yaml = require('js-yaml');
module.exports = function (source) {
this.cacheable && this.cacheable();
var res = yaml.safeLoad(source);
- return 'module.exports = ' + JSON.stringify(res, undefined, '\t');
+ return JSON.stringify(res, undefined, '\t');
};

0 comments on commit be01b65

Please sign in to comment.