Documents / @faasjs/ts-transform / transform
Function: transform()
transform(
code
,options
?):Output
Parameters
• code: string
• options?
• options.filename?: string
• options.jsc?: JscConfig
swc compilation
See
https://swc.rs/docs/configuration/compilation
• options.root?: string
default: process.cwd()
• options.target?: JscTarget
default: es2019
Returns
Output