ionic-team / ionic-team/ionic-framework
Optimizing Vite Configuration with tsconfig-paths Plugin
- Ngôn ngữ chính
- TypeScript
- Star
- 52.7k
- Fork
- 13.3k
- Merge trung bình
- 1 ngày 15 giờ
- Pull request đã merge (30 ngày)
- 51
Mô tả
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)
Hướng dẫn đóng góp
Hướng nghiên cứu
Compare packages/vue/test/base/tsconfig.json with packages/vue/test/base/vite.config.js, focusing on the duplicated path configuration. Start by checking how the tsconfig-paths plugin integrates with Vite and how dependencies are managed in the repository. Done means the Vite setup reads the paths from tsconfig.json without repeating them in vite.config.js.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- javascript, typescript
- Lĩnh vực
- build-system
- Loại issue
- Tái cấu trúc
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 55/100