Skip to content

Conversation

oliverschuerch
Copy link
Contributor

📄 Description

The PR updates the stencil config and does the following:

  • Fixes the main esm entry point (generated with the Stencil dist output-target) from ./dist/post-components/post-components.esm.js to ./dist/esm/post-components.js.
    This new file contains basically the same logic as the old one, but is the direct equivalent for the cjs entry point.
  • Moves the /loader folder back to the /dist folder, since it belongs to the Stencil dist output-target.
    However, users can still import it with @swisspost/design-system-components/loader, thanks to the exports definition in our package.json.
  • Adds the default /components entry point (generated with the Stencil dist-custom-elements output-target), which provides standalone, none lazy-loading components.
    They can be used as an equivalent to the formerly removed /loaders entry point and are needed for the angular-output-target outputType: standalone approach, which is planned to be implemented soon.
    Users can import it with @swisspost/design-system-components/components.
  • Beside that a new internal output-target has been added, which is needed for the react-output-target.
    Internally we can use the components with @swisspost/design-system-components/react. However, we will never need to do that manually, since the components-react output is generated directly with the help of the stencil config in the compoments package.

📝 Checklist

  • ✅ My code follows the style guidelines of this project
  • 🛠️ I have performed a self-review of my own code
  • 📄 I have made corresponding changes to the documentation
  • ⚠️ My changes generate no new warnings or errors
  • 🧪 I have added tests that prove my fix is effective or that my feature works
  • ✔️ New and existing unit tests pass locally with my changes

Copy link

changeset-bot bot commented Sep 1, 2025

🦋 Changeset detected

Latest commit: d5bdb1d

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 12 packages
Name Type
@swisspost/design-system-documentation Minor
@swisspost/design-system-components Minor
@swisspost/design-system-components-angular-workspace Patch
@swisspost/design-system-components-react Minor
@swisspost/design-system-components-angular Minor
@swisspost/design-system-nextjs-integration Patch
@swisspost/design-system-styles Minor
@swisspost/design-system-tokens Minor
@swisspost/design-system-icons Minor
@swisspost/design-system-styles-primeng Minor
@swisspost/internet-header Minor
@swisspost/design-system-styles-primeng-workspace Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@swisspost-bot
Copy link
Contributor

swisspost-bot commented Sep 1, 2025

Related Previews

Copy link

sonarqubecloud bot commented Sep 4, 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[bug]: Lazy-loading specific custom-elements is not available anymore
2 participants