Skip to content

Commit

Permalink
fix: add 'core' export and mapping for single files
Browse files Browse the repository at this point in the history
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:

```javascript
// 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.
  • Loading branch information
jboix committed Apr 30, 2024
1 parent 3e2564e commit e8612a7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,12 @@
".": {
"import": "./dist/pillarbox.es.js",
"require": "./dist/pillarbox.cjs.js"
}
},
"./core": {
"import": "./dist/pillarbox-core.es.js",
"require": "./dist/pillarbox-core.cjs.js"
},
"./*": "./*"
},
"files": [
"dist/*",
Expand Down

0 comments on commit e8612a7

Please sign in to comment.