ionic-team / ionic-team/ionic-framework
Optimizing Vite Configuration with tsconfig-paths Plugin
未关闭
triage
- 主要语言
- TypeScript
- 星标
- 52.7k
- 派生
- 13.3k
- 平均合并
- 1 天 15 小时
- 30 天内合并 PR
- 51
描述
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)
贡献指南
评估
这个 Issue 还没有评估数据。