I have a project without react. And I noticed that react and react-dom appeared in my package-lock.json file after installing js-confetti. The library source code actually doesn't depend on those packages. I believe they are in the dependencies list because of the demo homepage.
So I moved them into devDependencies. They won't end up in end users' dependency tree this way, and the site should be working fine after this change.
Thanks for the library @loonywizard!
I have a project without
react
. And I noticed thatreact
andreact-dom
appeared in mypackage-lock.json
file after installingjs-confetti
. The library source code actually doesn't depend on those packages. I believe they are in the dependencies list because of the demo homepage.So I moved them into
devDependencies
. They won't end up in end users' dependency tree this way, and the site should be working fine after this change.