SRGSSR / pillarbox-web

https://srgssr.github.io/pillarbox-web-demo/
MIT License
11 stars 1 forks source link

chore(bundle): add babel transpilation #232

Closed jboix closed 3 months ago

jboix commented 4 months ago

Description

Resolves #230 by integrating Babel into the rollup configuration to enhance compatibility across older browsers, aligning with the browser range supported by Video.js.

The following tables illustrate the impact on bundle sizes after integrating the transpilation step:

Minified Size Comparison

Destination With Babel Without Babel
dist/pillarbox-core.es.js 1.37 KB 1.37 KB
dist/pillarbox-core.umd.js 654.12 KB 653.36 KB
dist/pillarbox.es.js 55.16 KB 52.6 KB
dist/pillarbox.umd.js 702.12 KB 699.28 KB

Gzipped Size Comparison

Destination With Babel Without Babel
dist/pillarbox-core.es.js 619 B 619 B
dist/pillarbox-core.umd.js 192.33 KB 192.08 KB
dist/pillarbox.es.js 15.25 KB 14.44 KB
dist/pillarbox.umd.js 206.25 KB 205.41 KB

Changes made

github-actions[bot] commented 4 months ago

Coverage report

St.:grey_question:
Category Percentage Covered / Total
🟒 Statements 98.81% 581/588
🟒 Branches 96% 288/300
🟒 Functions 99.4% 166/167
🟒 Lines 99.28% 552/556

Test suite run success

192 tests passing in 9 suites.

Report generated by πŸ§ͺjest coverage report action from a6a1365439020198dfba435ee8776898bf907a80

github-actions[bot] commented 4 months ago

PR Preview Action v1.4.7 :---: Preview removed because the pull request was closed. 2024-03-22 10:56 UTC

github-actions[bot] commented 3 months ago

:tada: This PR is included in version 1.5.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: