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

Commit

Permalink
feat: add CSS files to side effects in order to tree-shake CSS imports
Browse files Browse the repository at this point in the history
  • Loading branch information
kris-ellery committed Apr 12, 2022
1 parent 75027ef commit 37c973d
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 37c973d

Please sign in to comment.