Skip to content

Commit

Permalink
🐛 Fix bug where CSS would get tree-shaken
Browse files Browse the repository at this point in the history
sideEffects: false in package.json marked every module as side-effect free
  • Loading branch information
leodr committed Oct 28, 2020
1 parent 64d6640 commit 5f1f709
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@
},
"license": "MIT",
"author": "Tobit.Software",
"sideEffects": false,
"sideEffects": [
"*.css"
],
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"files": [
Expand Down Expand Up @@ -126,8 +128,8 @@
"webpack-dev-server": "^3.11.0"
},
"peerDependencies": {
"react": "^16.8.0",
"react-dom": "^16.8.0"
"react": ">=16.8.0",
"react-dom": ">=16.8.0"
},
"optionalDependencies": {
"emojione": "^3.1.7"
Expand Down

0 comments on commit 5f1f709

Please sign in to comment.