developit / developit/microbundle
Types haven't been bundled by microbundle
- Lingua principale
- JavaScript
- Stelle
- 8.1k
- Fork
- 358
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
Microbundle ignores `*.ts` files if they contain only types. Example of the file: https://github.com/XaveScor/signal-components/blob/dff96fd7151db5aae7421059836794a7880c2649/src/types.ts.
### Reproduction:
```
git clone https://github.com/XaveScor/signal-components
git checkout tags/v0.11.0
pnpm install
pnpm build
```
### Expected Result:
`types.d.ts` is included in the `./dist` directory.
### Actual Result:
`types.d.ts` does not exist. Types are broken because we have `./types` imports, but the file is missing.
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Direzione di ricerca
Start with the linked signal-components example at src/types.ts and reproduce the issue by checking out tag v0.11.0, running pnpm install, and then pnpm build. Inspect the generated ./dist output and verify that types.d.ts is present and that ./types imports resolve; compare the result with the open linked pull request.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- rollup, typescript
- Ambito
- build-system, tooling
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100