Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function compileFromString(string, options) {
return compiler.compile(string, options)
}
async function compileFromUrl(url, options) {
const response = await fetch(url)
const code = await response.text()
return compiler.compile(code, { file: url, ...options })
}
function compileFromString(string, options) {
return compiler.compile(string, options)
}
async function compileFromUrl(url) {
const response = await fetch(url)
const code = await response.text()
return compiler.compile(code, { file: url })
}