Closed connorlindsey closed 6 months ago
Affects older Blitz version
Latest commit: 74cc7bb4a385561c61bebe597ceb00d5d731743d
The changes in this PR will be included in the next version bump.
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
The
remove-css-imports
regex had a bug which was deleting part of the output React components in the CJS build. The regex was matching everything from the firstrequire(
up to.css.js)";
instead of just matching a single css require.The previous regex matched all characters (
.+
) and the new one matches everything but parentheses ([^()]+
) so it doesn't match non-css requires.In practice, this removed the require calls for jsx in the button components. It only affected the button components because they import styles.
Found the issue when using the package with the knock node example which uses Blitz. Tested against it and the components work 🎉
Unrelated: adds in some style changes to the archive button to stay synced with
@knocklabs/react-notification-feed