fix: remove serverless fn comment and close #585
This commit is contained in:
@@ -306,9 +306,8 @@ export class ServerlessService {
|
|||||||
|
|
||||||
return await safeEval(
|
return await safeEval(
|
||||||
`async function func() {
|
`async function func() {
|
||||||
${await this.convertTypescriptCode(
|
${await this.convertTypescriptCode(functionString)};
|
||||||
functionString,
|
return handler(context, require)
|
||||||
)}; return handler(context, require)
|
|
||||||
}
|
}
|
||||||
return func()
|
return func()
|
||||||
`,
|
`,
|
||||||
@@ -330,6 +329,7 @@ export class ServerlessService {
|
|||||||
|
|
||||||
private getBabelOptions(): TransformOptions {
|
private getBabelOptions(): TransformOptions {
|
||||||
return {
|
return {
|
||||||
|
comments: false,
|
||||||
plugins: [
|
plugins: [
|
||||||
require('@babel/plugin-transform-typescript'),
|
require('@babel/plugin-transform-typescript'),
|
||||||
[
|
[
|
||||||
|
|||||||
Reference in New Issue
Block a user