atlassian-labs / compiled

A familiar and performant compile time CSS-in-JS library for React.
https://compiledcssinjs.com
Apache License 2.0
1.99k stars 67 forks source link

Fix Compiled runtime being added unexpectedly for xcss prop usage #1588

Closed itsdouges closed 11 months ago

itsdouges commented 11 months ago

Currently Compiled will add its runtime even if there is no direct Compiled xcss prop usage (e.g. xcss prop from ADS primitive components!).

This pull request resolves that by moving some checks around (thanks @dddlr for putting in the initial plumbing!).

changeset-bot[bot] commented 11 months ago

🦋 Changeset detected

Latest commit: 177ede8cab057a6315fefe89d3f71f30fafe0568

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

This PR includes changesets to release 1 package | Name | Type | | ---------------------- | ----- | | @compiled/babel-plugin | 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