-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs(spindle-ui): stopped global import #548
Conversation
✨✨ That's perfect, there is no visual difference! ✨✨ Check out the report here. |
Visit the preview URL for this PR (updated for commit 7069f9a): https://ameba-spindle--pr548-docs-fix-import-docs-bxibaijy.web.app (expires Sat, 12 Nov 2022 09:01:50 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ESMだと問題ないので悩ましいなと思ったりしました:thinking_face:
全ての例を変えるというよりかは注意書きで、cjsの場合はTree Shakingできないので明示的にパスを指定する必要がある有無を書いたほうが適切な気がしました!
そっすな〜、記述として間違っているわけではないので無理にすべて書き換えるほどではないかなという感じがします。 ただ実利用時には考慮すべきポイントなので、注意点を1箇所(READMEとか?)書いておいて、参照してもいいかもっすね。 |
91ba635
to
c5ad1ae
Compare
確かにそうですね、、!記述は元に戻しつつ、個別にインポートされていた箇所を逆に修正しました! また、注意点を各々のドキュメントに書いてしまうとまた漏れが発生してしまいそうだったので、READMEの利用方法のところにコメントを追加しました! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
良さそうです!:arigataya:
nitsですが、コミットメッセージの冒頭 |
c5ad1ae
to
7069f9a
Compare
ハッ失礼しました、 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
概要
ほとんどのコンポーネントのdocsにて、import文が個別インポートではなく
spindle-ui丸ごとインポートになっていたので変更しました