blob: a23f9b1f71549cc78b0798d6d83e591ba1319d6c (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
/* eslint-disable import/no-commonjs */
const JsYaml = require('js-yaml');
// This will transform YAML files to JSON strings
module.exports = {
process: (sourceContent) => {
const jsonContent = JsYaml.load(sourceContent);
const json = JSON.stringify(jsonContent);
return `module.exports = ${json}`;
},
};
|