ionic-team / ionic-team/ionic-framework
Optimizing Vite Configuration with tsconfig-paths Plugin
- Lingua principale
- TypeScript
- Stelle
- 52.7k
- Fork
- 13.3k
- Merge medio
- 1g 15h
- PR unite (30g)
- 51
Descrizione
I think it would be more efficient if we use the [tsconfig-paths](https://www.npmjs.com/package/tsconfig-paths) plugin, which automatically helps Vite read the paths from `tsconfig.json`, so we don't have to define them again in `vite.config.js`.
For example, here is the case:
- In the [packages/vue/test/base/tsconfig.json](https://github.com/ionic-team/ionic-framework/blob/bf396c9b07a82074a388baac794a766a65880722/packages/vue/test/base/tsconfig.json#L15C4-L17C7)
- And in the [packages/vue/test/base/vite.config.js](https://github.com/ionic-team/ionic-framework/blob/main/packages/vue/test/base/vite.config.js#L9C2-L11C7)
Guida per i contributori
Apri la guida per i contributori
Valutazione
Questa issue non è ancora stata valutata.