hls.js
hls.js copied to clipboard
feat: sideEffects to package.json
Add sideEffects to have better code split
This PR will...
Help budlers cut unused code when you use named import/export
I compare builds (master and this pr). There are no difference beetween mjs, and about 1.5Kb at js.
https://github.com/video-dev/hls.js/actions/runs/12154224025/job/33989518911#step:7:1
2024-12-05T17:21:25.2296119Z Finished in 0 secs / 0 secs @ 17:21:25 GMT+0000 (Coordinated Universal Time)
2024-12-05T17:21:25.2297011Z
2024-12-05T17:21:25.2297413Z SUMMARY:
2024-12-05T17:21:25.2299640Z ✔ 0 tests completed
2024-12-05T17:21:25.3183742Z ##[error]Process completed with exit code 1.
Removing from the next milestone. The change breaks the test runner. If you'd like to make this change, please investigate a change to the test runner that doesn't depend on side-effects.