fix(build): preserve css imports in sideEffects#228
Conversation
🦋 Changeset detectedLatest commit: 45ccb05 The changes in this PR will be included in the next version bump. This PR includes changesets to release 17 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. 🗂️ Base branches to auto review (2)
Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Why
|
Codecov Report✅ All modified and coverable lines are covered by tests. 🚀 New features to boost your workflow:
|
|
아주 좋은 리뷰이십니다! changest changed package all을 눌러서 진행했는데,
요거 방지할 방법을 연구해봐야겠네요 🤔 |
froggy1014
left a comment
There was a problem hiding this comment.
아마 나머지 패키지들도 한번 버전업 다 시켜서 배포한번 돌려야할거같긴합니다.. ㅎㅎ
G-hoon
left a comment
There was a problem hiding this comment.
코드 변경 자체는 문제없어 보여서 Approve 합니다!
changeset 관련해서 말씀하신 부분만 머지 전에 정리 부탁드립니다:
- avatar, theme, chip → changeset에서 제거 (이번 PR diff에 변경 없음)
그 외 코드 LGTM 입니다.
Changes
sideEffects: false로 선언된 패키지가./styles.css를 함께 export하고 있어, 번들러가import '@sipe-team/xxx/styles.css'를 tree-shaking으로 제거해버리는 버그를 수정합니다. 소비자 번들에 스타일이 빠져 UI가 깨지는 원인이 될 수 있음모든 관련 패키지와 컴포넌트 스캐폴딩 템플릿에서 다음과 같이 변경:
수정된 파일 (17개)
accordion,badge,button,card,checkbox,divider,flex,grid,input,radio,reset,side,skeleton,switch,tooltip,typography.templates/component/package.json— 앞으로pnpm create:component로 생성되는 모든 신규 패키지가 올바른 설정을 가집니다.유지된 패키지 (
sideEffects: false그대로)CSS export가 없는 다음 패키지는 수정 대상이 아닙니닷:
avatar,icon,theme,tokens,plugin-figma-codegenChecklist
pnpm -r build통과 확인