atlassian-labs / compiled

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

Bail out early in parcel-transformer if @compiled/react is not present #1621

Closed eddie-atkinson closed 7 months ago

eddie-atkinson commented 7 months ago

Description

The transformer flames out if we don't have @compiled/react in a page, this PR just allows it to bail early

changeset-bot[bot] commented 7 months ago

🦋 Changeset detected

Latest commit: 8dc592ed24482564c371d490885bb346b40d1809

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

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

dddlr commented 7 months ago

oh yeah don't forget to make a changeset by running yarn changeset and following the instructions there

should be a patch bump

(ty for making the PR!)

eddie-atkinson commented 7 months ago

@dddlr thank you for helping me through the process! Should have added the changeset

dddlr commented 7 months ago

i'll rebase and merge this in since everyone is happy with it 👍

eddie-atkinson commented 7 months ago

Nice work team!