From befb70b8ae0fd5872d6333ad456412810ba0b8bf Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Tue, 2 Jun 2026 19:36:43 +0000 Subject: [PATCH] Pass config file path as sourceFilename in stackConfigFileExportsConfig Uses the previously-unused filePath param as Babel's sourceFilename so parse diagnostics reference the real file. Addresses Copilot review note. Co-Authored-By: mantra --- packages/stack-shared/src/stack-config-file.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/stack-shared/src/stack-config-file.ts b/packages/stack-shared/src/stack-config-file.ts index 48c69369b..3375f7996 100644 --- a/packages/stack-shared/src/stack-config-file.ts +++ b/packages/stack-shared/src/stack-config-file.ts @@ -120,6 +120,7 @@ export function stackConfigFileExportsConfig(content: string, filePath: string): try { ast = parser.parse(content, { sourceType: "module", + sourceFilename: filePath, plugins: ["typescript", "importAttributes"], }); } catch {