Closed brunobispo closed 1 year ago
@brunobispo with the release of @pixi/react
v7.0.0.alpha-2
today, the last of these suggestions is complete, this version pulls in pixi modules instead of the whole package.
sideEffects: false
and splitting animated out of the main package (@pixi/react-animated
) was introduced in v7.0.0.alpha-1
.
Hope this helps!
Description
I'm trying to use this library to develop a TV app. It's everything going well, except the resulting bundle size. I noticed some aspects that is causing some waste in this matters that I would like to work on:
sideEffects
config in package.json is preventing the bundler from tree shaking unused code;pixi.js
package might result in a smaller package (to be validated);@inlet/react-pixi/animated
instead of importing from@inlet/react-pixi
results in duplication on the app using it as well.I'd love start working on these ideas, but I'd like to hear your thoughts first.
Thanks and congrats for the amazing work!
Additional info
@inlet/react-pixi
version: 6.8.0React
version: 17.0.2ReactDOM
version: n/aPIXI
version: 6.0.0