fix: remove serverless fn comment and close #585

This commit is contained in:
Innei
2022-06-22 21:47:17 +08:00
parent 0c3b114121
commit 37698981da

View File

@@ -306,9 +306,8 @@ export class ServerlessService {
return await safeEval(
`async function func() {
${await this.convertTypescriptCode(
functionString,
)}; return handler(context, require)
${await this.convertTypescriptCode(functionString)};
return handler(context, require)
}
return func()
`,
@@ -330,6 +329,7 @@ export class ServerlessService {
private getBabelOptions(): TransformOptions {
return {
comments: false,
plugins: [
require('@babel/plugin-transform-typescript'),
[