Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't export web components #1560

Merged
merged 3 commits into from
Nov 1, 2022
Merged

Conversation

safeforge
Copy link
Contributor

As mentioned at #1450 exporting a component can cause errors when used as an npm package. In the latest release two components SegmentedControlElement and XBannerElement perform the export and I'm receiving the same error reported in #1440.

The code contains a fix with the same approach used by @camertron

/cc @jonrohan

@safeforge safeforge requested review from a team and keithamus November 1, 2022 09:08
@changeset-bot
Copy link

changeset-bot bot commented Nov 1, 2022

🦋 Changeset detected

Latest commit: 0637065

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

This PR includes changesets to release 1 package
Name Type
@primer/view-components 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

@github-actions github-actions bot added the javascript Pull requests that update Javascript code label Nov 1, 2022
Copy link
Member

@keithamus keithamus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks reasonable to me.

We probably want to export the components to allow for extensions, but we can resolve that issue later, for now let's get this error resolved.

@keithamus keithamus merged commit 8bc7d1c into primer:main Nov 1, 2022
@primer-css primer-css mentioned this pull request Nov 1, 2022
@safeforge safeforge deleted the dont-export-elements branch November 1, 2022 11:19
@primer-css primer-css mentioned this pull request Nov 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
javascript Pull requests that update Javascript code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants