mirror of
https://github.com/serverless/serverless.git
synced 2026-01-18 14:58:43 +00:00
fix: use correct handler for esbuild enabled check (#12543)
This commit is contained in:
parent
347713f3a8
commit
d9bedf28af
@ -142,7 +142,7 @@ class Esbuild {
|
||||
return true
|
||||
}
|
||||
|
||||
const functionName = path.extname(functionHandler).slice(1);
|
||||
const functionName = path.extname(functionObject[handlerPropertyName]).slice(1);
|
||||
const handlerPath = functionHandler.replace(`.${functionName}`, '');
|
||||
let parsedExtension = undefined;
|
||||
for (const extension of ['.js', '.ts', '.cjs', '.mjs', '.cts', '.mts', '.jsx', '.tsx']) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user