Skip to content

Commit

Permalink
feat: tup-700 add CSS as sideEffects
Browse files Browse the repository at this point in the history
"To prevent the CSS files from being accidentally removed by the consumer's tree-shaking efforts…"
—https://dev.to/receter/how-to-create-a-react-component-library-using-vites-library-mode-4lma#side-effects
  • Loading branch information
wesleyboar committed Feb 26, 2024
1 parent 2d5ab1c commit 6336f2c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,5 +89,8 @@
"peerDependencies": {
"react": "18.2.0",
"react-dom": "18.2.0"
}
},
"sideEffects": [
"libs/core-componets/**/*.css"
]
}

0 comments on commit 6336f2c

Please sign in to comment.