Open gablabelle opened 3 years ago
same issue,did you solve it
same issue,did you solve it
Nope.
@gablabelle Hope you have found a solution for that. Is it fixed?
@gablabelle Hope you have found a solution for that. Is it fixed?
Nope, we moved away from rollup in our monorepo for various reasons.
I solved this issue by using peerDepsExternal({ includeDependencies: true }), but I am having issues with local css file.It is not injecting
I find the sideEffects of react-toastify@7.0.4
is :
"sideEffects": [
"*.css"
]
And ths css file is react-toastify/dist/ReactToastify.css
,so it will be tree-shaking.
In my case the issue with the @import was solved by removing the extension.
Instead of:
@import 'react-toastify/dist/ReactToastify.css'
Use this:
@import 'react-toastify/dist/ReactToastify'
So here is my rollup config
So if I import css file local from a relative path, it gets injected but I import from node_modules it doesn't
What am I doing wrong here?