Skip to content
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

Not generate cache for identifier #1796

Merged
merged 3 commits into from
Feb 13, 2025
Merged

Conversation

liamqma
Copy link
Collaborator

@liamqma liamqma commented Feb 13, 2025

What is this change?

Describe what change you are making here.

Why are we making this change?

Give the full context for your change here.

How are we making this change?

(Optional.)


PR checklist

Don't delete me!

I have...

  • Updated or added applicable tests
  • Updated the documentation in website/
  • Added a changeset (if making any changes that affect Compiled's behaviour)

Copy link

Thank you for your submission! Like many open source projects, we ask that you sign our CLA (Contributor License Agreement) before we can accept your contribution.
If your email is listed below, please ensure that you sign the CLA with the same email address.

The following users still need to sign our CLA:
❌AtlassianRubberDuck

Already signed the CLA? To re-check, try refreshing the page.

Copy link

changeset-bot bot commented Feb 13, 2025

🦋 Changeset detected

Latest commit: d2c534c

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

Copy link

netlify bot commented Feb 13, 2025

Deploy Preview for compiled-css-in-js ready!

Name Link
🔨 Latest commit d2c534c
🔍 Latest deploy log https://app.netlify.com/sites/compiled-css-in-js/deploys/67ad676a9e2421000870faf0
😎 Deploy Preview https://deploy-preview-1796--compiled-css-in-js.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Collaborator

@kylorhall-atlassian kylorhall-atlassian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Honestly pending an internal test with this as a patch or other means to validate that things are roughly 1:1 in terns of output compiled-css.css, LGTM, and happy to help with that if I can…

🫡 maybe I went overboard…

@@ -128,7 +128,9 @@ describe('css map basic functionality', () => {

const styles = cssMap({ root: { color: 'red' } });
`);
}).toThrow(ErrorMessages.USE_VARIANT_OF_CSS_MAP);
}).toThrow(
'This CallExpression was unable to have its styles extracted — try to define them statically using Compiled APIs instead'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, if this still throws an error…I swore it didn't before, but LGTM. Maybe it's some other scenario that didn't fail…

@liamqma
Copy link
Collaborator Author

liamqma commented Feb 13, 2025

Honestly pending an internal test with this as a patch or other means to validate that things are roughly 1:1 in terns of output compiled-css.css, LGTM, and happy to help with that if I can…

🫡 maybe I went overboard…

Is this test sufficient?

Copy link
Collaborator

@kylorhall-atlassian kylorhall-atlassian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested locally on @atlaskit/* packages, worked as expected.

@liamqma liamqma merged commit 8a82452 into master Feb 13, 2025
11 checks passed
@liamqma liamqma deleted the not-generate-cache-for-identifier branch February 13, 2025 23:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants