-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Description
概要
2023年末の開発 #121 から時間が空いたので、別ブランチで作り直し。
リリース
- すべての機能をViteプラグインとしてリプレイス
- すべてのデータをViteのビルドプロセス内に移動
- コンフィグファイルをVite公式のものに変更
- rolldown-viteに対応
- Windowsでの動作を安定化
- 依存関係の最小化(ViteはpeerDependenciesに変更)
開発
- ライブラリのビルドステップを完全削除(TypeScriptをJavaScript + JSDocに変更)
課題
- Iconコンポーネントでstyle付きのSVGを使うと、クラス名でバッティングして正しく表示されなくなる #123
- Partial Hydrate したいコンポーネントにspaceが含まれているときにreact-domが"Text content did not match"のWarningを吐く #127
- Picture dimensions in file name #133
- The built-in component {Image} is not working #134
- The path to assets is not saved after the build #135
メモ
- windows
import { spawn } from "node:child_process"はパッケージ名で取得できないのでimport { spawn } from "cross-spawn"を使う- ファイルパスはバックスラッシュだがブラウザURLはスラッシュ(パスモジュールを介するとバックスラッシュになるので注意)
- ダイナミックimportはfile URLにする必要があるので
import { pathToFileURL } from 'url'を通す tinyglobbyのglobに渡す値はposixにする(cwdに絶対パスを入れる)- Viteの
transformなどに渡されるidはposix - Vite devのaliasはブラウザで使用されるのでreplacementはnormalizePathを通す
- Vite OutputChunksのfacadeModuleIdはposix
"rolldown-vite": "^6.3.14"- generateBundle中のbundle fileNameの変更ができない
- manualChunksオプションがない(advancedChunksに移行)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels