zspecza / common-tags

🔖 Useful template literal tags for dealing with strings in ES2015+

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Common-tags is not tree shakeable by Webpack becasue sideEffects: false is missing in package.json

marcopagliarulo opened this issue · comments

Webpack requires a package to declare itself as side effects free in order to tree-shake unused modules.
https://webpack.js.org/guides/tree-shaking/#mark-the-file-as-side-effect-free

Common-tags looks actually sideEffect free, but the missing flag prevent a proper tree shake, please add the flag to package.jso