各ディレクトリ配下の index.dart に import を集約する方法について(Barrel ファイル) #232
Closed
blendthink
started this conversation in
General
Replies: 3 comments
-
最近は積極的に作成しなくてよいかも…と思い始めています. 理由としては,パッケージ内で利用する場合は大体近くに定義することがほとんどだと思うのと,パッケージ外で利用する場合は実質バレルのように export しているので…! 少なくとも現状ではメリットよりデメリットの方が上回っていそう…!という意見です 🙋 |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Beta Was this translation helpful? Give feedback.
0 replies
-
お二人ともコメントありがとうございます🙏 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
メリット
デメリット
所感
Dart で monorepo 構成にするとパッケージ間で利用できるものはどちらにしてもまとめているため、そこまで大きなメリットにはならないかもしれません。自動生成やカスタムリントをどうするかが議論のポイントになりそうです。
↓社内での議論スレッド
https://yumemi.slack.com/archives/C0585H2BG9L/p1706506355658119
Beta Was this translation helpful? Give feedback.
All reactions