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

Externalize subpath imports of node modules #2192

Merged
merged 1 commit into from
Jul 21, 2023

Conversation

connor-baer
Copy link
Member

Purpose

I discovered that subpath imports from the node_modules folder were copied into the dist folder and published to npm. This caused dependency resolution errors in the consuming apps and potentially duplicate bundling of peer dependencies such as react and @emotion/react.

Approach and changes

  • Added the subpath imports to the externals config option
  • Cleaned up the dist/node_modules folder as part of the build script. It only contains empty folders and no files now, but I wanted to tidy it up anyway. That way, if files sneak into the folder in the future, the issue should be caught in CI.

Definition of done

  • Development completed
  • Reviewers assigned
  • Unit and integration tests
  • Meets minimum browser support
  • Meets accessibility requirements

@connor-baer connor-baer added the 🐞 bug Something isn't working as it should label Jul 21, 2023
@connor-baer connor-baer requested a review from a team as a code owner July 21, 2023 14:44
@connor-baer connor-baer requested review from pdrmdrs and removed request for a team July 21, 2023 14:44
@changeset-bot
Copy link

changeset-bot bot commented Jul 21, 2023

🦋 Changeset detected

Latest commit: e2a7f91

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

This PR includes changesets to release 1 package
Name Type
@sumup/circuit-ui 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

@vercel
Copy link

vercel bot commented Jul 21, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
oss-circuit-ui ✅ Ready (Inspect) Visit Preview Jul 21, 2023 2:44pm

@connor-baer connor-baer requested review from tareqlol and removed request for pdrmdrs July 21, 2023 14:50
@connor-baer connor-baer merged commit 35f42ec into next Jul 21, 2023
@connor-baer connor-baer deleted the fix/external-node-modules branch July 21, 2023 15:06
@connor-baer connor-baer mentioned this pull request Aug 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug Something isn't working as it should 🗂 circuit-ui
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant