Native config loader based on `oxnode` ability

オープン
#3,380 コメント 1 件 リアクション 1 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
node.js, typescript, vite
領域
build-system

調査の方向性

Start by reading the linked Vite issue about making the native config loader the default and the referenced config loader performance issue #2698. The issue proposes experimenting with oxc-transformer to provide jiti-like config loading through Vite+'s existing oxnode and vite-plus/register support, but leaves timing and implementation scope open. Done means establishing whether that approach is viable and, if pursued, demonstrating compatibility with syntax such as __dirname and TypeScript enums.

索引モデルが issue の本文から書いたものです。

説明

pending triage

--configLoader native is about to become the default config loading method in Vite 9+.

After that, some syntax like __dirname and TypeScript enum in Vite config and would become incompatible. For pure Vite, supporting these syntax means adding oxnode or jiti dependencies, which increases its size.

But Vite+ is different, vpx already included oxnode, there is also a module vite-plus/register for adding TypeScript loading ability for Node. In other words, Vite+ already has the ability that jiti provides.

So in the future version where native become the default config loader, in order to have better compatibility, it might be a good idea to try using oxc-transformer's ability to load config, which costs little on Vite+. (provide jiti-like ability)

Not sure if we should start this experiment before Vite 9+ (config loader performance improvement #2698)

主要言語
TypeScript
スター
6.6k
フォーク
303
平均マージ
1日 5時間
マージ済み PR(30日)
212

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

voidzero-dev/vite-plus のほかの issue

voidzero-dev/vite-plus の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。