Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
Merge pull request #67 from zillow/feat/css-side-effects
Browse files Browse the repository at this point in the history
feat: add CSS files to side effects in order to tree-shake CSS imports
  • Loading branch information
kris-ellery authored Apr 12, 2022
2 parents 75027ef + 37c973d commit f98e451
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 4 deletions.
5 changes: 4 additions & 1 deletion templates/dist/cjs/dev/package.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{
"type": "commonjs"
"type": "commonjs",
"sideEffects": [
"*.css"
]
}
5 changes: 4 additions & 1 deletion templates/dist/cjs/prod/package.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{
"type": "commonjs"
"type": "commonjs",
"sideEffects": [
"*.css"
]
}
5 changes: 4 additions & 1 deletion templates/dist/es/dev/package.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{
"type": "module"
"type": "module",
"sideEffects": [
"*.css"
]
}
5 changes: 4 additions & 1 deletion templates/dist/es/prod/package.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{
"type": "module"
"type": "module",
"sideEffects": [
"*.css"
]
}

0 comments on commit f98e451

Please sign in to comment.