SRGSSR / pillarbox-web

Pillarbox is a versatile media playback ecosystem engineered for the web.
https://srgssr.github.io/pillarbox-web-demo/
MIT License
12 stars 1 forks source link

fix: add 'core' export and mapping for single files #251

Closed jboix closed 5 months ago

jboix commented 5 months ago

Description

Introduces a new export under the core mapping to facilitate the use of the core functionalities of the pillarbox library. Integrators can now easily access the core bundle by importing it directly in their projects as shown below:

// Using ES6 import syntax
import pillarbox from '@srgssr/pillarbox-web/core';

// Using CommonJS syntax
const pillarbox = require('@srgssr/pillarbox-web/core');

This update also includes an export to allow for straightforward mapping of all files included in the final bundle.

Changes made

github-actions[bot] commented 5 months ago

PR Preview Action v1.4.7 :---: Preview removed because the pull request was closed. 2024-04-30 15:10 UTC

github-actions[bot] commented 5 months ago

Coverage report

St.:grey_question:
Category Percentage Covered / Total
🟒 Statements 98.72% 617/625
🟒 Branches 95.74% 292/305
🟒 Functions 99.43% 173/174
🟒 Lines 99.15% 581/586

Test suite run success

199 tests passing in 9 suites.

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

github-actions[bot] commented 5 months ago

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

The release is available on:

Your semantic-release bot :package::rocket: