Skip to content

Commit 05b3768

Browse files
fix: Force esbuild metafile=true
1 parent 1863b0b commit 05b3768

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/resourceDiscovery.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@ async function getCurrentFrameworkName(config: LldConfig) {
3333
return framework?.name;
3434
}
3535

36-
async function getLambdas(config: LldConfig) {
36+
async function getLambdas(
37+
config: LldConfig,
38+
): Promise<LambdaResource[] | undefined> {
3739
let resources: LambdaResource[] | undefined = undefined;
3840

3941
let frameworks = [...frameworksSupported];
@@ -73,6 +75,10 @@ async function getLambdas(config: LldConfig) {
7375
return resources.map((r) => ({
7476
...r,
7577
codePath: path.resolve(r.codePath),
78+
esBuildOptions: {
79+
...r.esBuildOptions,
80+
metafile: true,
81+
},
7682
}));
7783
}
7884

0 commit comments

Comments
 (0)