Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
static _parseSource ( source ) {
return vueDocs.parseSource( source.code, source.name );
}
module.exports = function(source) {
const callback = this.async()
const content = JSON.stringify(source)
.replace(/\u2028/g, '\\u2028')
.replace(/\u2029/g, '\\u2029')
.replace(/\\n/g, '\n')
const component = parseSource(content, this.resourcePath)
callback(null, `module.exports = ${JSON.stringify(component)}`)
}