Closed cxa closed 2 months ago
For a project structured like this:
── src │ ├── components │ │ ├── AAA.astro │ │ └── BBB │ │ ├── index.astro │ │ └── index.ts │ └── pages │ └── index.astro
index.ts is simple that reexport with name:
index.ts
import {default as BBB} from './index.astro';
in pages/index.astro, we can get AAA auto imported(which is from AAA.astro):
pages/index.astro
AAA
but failed to auto import with BBB:
BBB
Can reproduce with this demo projec:
demo.zip
https://github.com/user-attachments/files/16479361/demo.zip
Never mind. Issue on my side.
Describe the Bug
For a project structured like this:
── src │ ├── components │ │ ├── AAA.astro │ │ └── BBB │ │ ├── index.astro │ │ └── index.ts │ └── pages │ └── index.astro
index.ts
is simple that reexport with name:in
pages/index.astro
, we can getAAA
auto imported(which is from AAA.astro):but failed to auto import with
BBB
:Steps to Reproduce
Can reproduce with this demo projec:
demo.zip
Link to Minimal Reproducible Example
https://github.com/user-attachments/files/16479361/demo.zip