var yaml = require('js-yaml');

module.exports = function (source) {
  this.cacheable && this.cacheable();
  var res = yaml.safeLoad(source);
  return JSON.stringify(res, undefined, '\t');
};

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');
};

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

This reverts commit b05cba0dc659e1c60283224cdf558bc085061db7.
