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

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

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

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