ionic-team / ionic-team/ionic-framework

Optimizing Vite Configuration with tsconfig-paths Plugin

Offen
#30,385 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
triage
Vorherrschende Sprache
TypeScript
Sterne
52.7k
Forks
13.3k
Ø Merge
1 T. 15 Std.
Gemergte PRs (30 T.)
51

Beschreibung

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)

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.