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
Fix @koddson/textarea-caret
breaking non-ESM builds
#2244
Fix @koddson/textarea-caret
breaking non-ESM builds
#2244
Conversation
🦋 Changeset detectedLatest commit: d9cac67 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 |
* Adapted from https://github.com/koddsson/textarea-caret-position, which was itself | ||
* forked from https://github.com/component/textarea-caret-position. |
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.
I'm no expert on licensing. Both source projects are MIT-licensed - is this sufficient attribution? Do we also need to pull in the copyright statements from those licenses?
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.
I think this is fine 👍
size-limit report 📦
|
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.
Thank you, @iansan5653 💖
* Adapted from https://github.com/koddsson/textarea-caret-position, which was itself | ||
* forked from https://github.com/component/textarea-caret-position. |
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.
I think this is fine 👍
…only-module-textarea-caret-breaking-nextjs
…only-module-textarea-caret-breaking-nextjs
Fixes #2238 breaking non-ESM builds by inlining the entire module. This also allows us to inline the bug fixes / workaround hacks that we were originally calling after importing. In addition, it allows us to inline the types instead of defining a
.d.ts
file.I have tested this in Storybook and backported the change to Memex to test there as well.
Merge checklist