mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-13 21:01:21 +08:00
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 <mantra@stack-auth.com>
This commit is contained in:
parent
b9a4f76349
commit
befb70b8ae
@ -120,6 +120,7 @@ export function stackConfigFileExportsConfig(content: string, filePath: string):
|
||||
try {
|
||||
ast = parser.parse(content, {
|
||||
sourceType: "module",
|
||||
sourceFilename: filePath,
|
||||
plugins: ["typescript", "importAttributes"],
|
||||
});
|
||||
} catch {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user