8 lines
149 B
JavaScript
8 lines
149 B
JavaScript
const yaml = require('js-yaml');
|
|
|
|
module.exports = {
|
|
process(src) {
|
|
return `module.exports = ${ JSON.stringify(yaml.safeLoad(src)) };`;
|
|
}
|
|
};
|