Describe the bug
When having a folder with an index.ts and a subfolder with another index.ts and using prettier the subfolder is re-exported from the parent index.ts like that:
export {
a,
b,
} from 'sub-folder';
This causes the logic to recognize export symbols to not see them.
See error browser console:
main.ts:1 Uncaught SyntaxError: The requested module '/src/folder/index.ts' does not provide an export named 'a' (at main.ts:1:22)
Expected behavior
The example view is shown
Additional context
It works when I change
export {
a,
b,
} from './subfolder';
to this
export { a, b } from './subfolder';
But, we have way more entries in that export statement and prettier reformats them into this multi-line version.
Describe the bug When having a folder with an index.ts and a subfolder with another index.ts and using prettier the subfolder is re-exported from the parent index.ts like that:
This causes the logic to recognize export symbols to not see them.
To Reproduce
See my repro.
cd ./examples/simple
pnpm run dev
main.ts:1 Uncaught SyntaxError: The requested module '/src/folder/index.ts' does not provide an export named 'a' (at main.ts:1:22)
Expected behavior
The example view is shown
Additional context It works when I change
to this
But, we have way more entries in that export statement and prettier reformats them into this multi-line version.