Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
ts: function(content, cb, compiler, filePath) {
let ts = new TypeScriptAsset(filePath, {}, { rootDir: filePath })
ts.contents = content
ts.process().then(res => {
cb(null, res.js)
})
}
}