-
Notifications
You must be signed in to change notification settings - Fork 536
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
feat(bundle): add exports for test-helpers #2419
Conversation
🦋 Changeset detectedLatest commit: 0095409 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
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 |
size-limit report 📦
|
… into fix/update-utils-entrypoint
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! ship it :)
Update: I looked at every diff in For a quick review + merge, can we break this PR into the immediate hotfix of shipping test-helpers and long term improvements? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
paired and tested this, let's ship it after fixing deprecate warnings
Background
Certain files from
utils
are not included in the package, specifically if they are not imported by a file through an entrypoint (likesrc/utils/test-helpers.tsx
)Approach
This PR adds additional entrypoints for files expected to be in the package. Currently, files under
utils
will not be included in the bundle unless they are referenced/imported by existing code. In the case of test helpers, this file is now explicitly included as it's export pattern would not fall under the existinglib-esm/*
.