ionic-team / ionic-team/ionic-framework

Optimizing Vite Configuration with tsconfig-paths Plugin

Open
#30,385 0 comments 0 reactions 0 assignees View on GitHub
triage
Dominant language
TypeScript
Stars
52.7k
Forks
13.3k
Avg merge
1d 15h
Merged PRs (30d)
51

Description

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)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.