Skip to content

Conversation

@JakeLane
Copy link
Collaborator

@JakeLane JakeLane commented Oct 17, 2025

What is this change?

In the parcel transformer, we are going to start getting cases where code is already transformed (when we rollout the SWC plugin). We need to optimise the perf of this path

Why are we making this change?

Currently we'll evaluate pre-transformed code which means parsing and transforming with babel.

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)

@changeset-bot
Copy link

changeset-bot bot commented Oct 17, 2025

🦋 Changeset detected

Latest commit: 5ac08ca

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

This PR includes changesets to release 2 packages
Name Type
@compiled/parcel-transformer Minor
@compiled/parcel-config 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

@netlify
Copy link

netlify bot commented Oct 17, 2025

Deploy Preview for compiled-css-in-js canceled.

Name Link
🔨 Latest commit 5ac08ca
🔍 Latest deploy log https://app.netlify.com/projects/compiled-css-in-js/deploys/68f1cc78c9dcb500088fa851

@JakeLane JakeLane requested a review from marcins October 19, 2025 22:46
@JakeLane JakeLane merged commit f9bf2fb into master Oct 20, 2025
17 checks passed
@JakeLane JakeLane deleted the skip-transformed-code branch October 20, 2025 00:03
// For everything else we bail out.
return undefined;
}
if (code.includes('/* COMPILED_TRANSFORMED_ASSET */')) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

I missed this, but yeah, makes perfect sense if that path exists!

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.

4 participants