Skip to content

Conversation

@yamadapc
Copy link
Contributor

  • Fix a missing ref conversion where the ref would be kept as an object even
    with the flag enabled
  • Fix rust compatibility with the environment deduplication flag

A subsequent change will modify rust asset graph so it doesn't copy
environments over. We expect a non-negligible performance improvement to native
builds from that change.

Test Plan: N/A

Created using spr 1.3.7-beta.1
@yamadapc yamadapc requested a review from a team as a code owner June 30, 2025 23:42
@changeset-bot
Copy link

changeset-bot bot commented Jun 30, 2025

🦋 Changeset detected

Latest commit: 7b05ba2

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

This PR includes changesets to release 8 packages
Name Type
@atlaspack/core Patch
@atlaspack/bundler-experimental Patch
@atlaspack/cli Patch
@atlaspack/register Patch
@atlaspack/test-utils Patch
@atlaspack/bundle-stats Patch
@atlaspack/query Patch
@atlaspack/reporter-bundle-stats 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

asset.env.id = getFeatureFlag('environmentDeduplication')
? // TODO: Rust can do this and avoid copying a significant amount of data over
getEnvironmentHash(asset.env)
: getEnvId(asset.env);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is a number which is wrong

let idAndContext = `${id}-${context}`;

let env = this.envCache.get(idAndContext);
if (env) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Are these changes behind a flag?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes there is a flag in that function

@yamadapc
Copy link
Contributor Author

This is the rust change - #201

Created using spr 1.3.7-beta.1
@yamadapc yamadapc merged commit 74fd942 into main Jul 1, 2025
16 checks passed
@yamadapc yamadapc deleted the spr/yamadapc/fix-bug-with-environment-id-being-ref branch July 1, 2025 02:59
@atlaspack-ci atlaspack-ci bot mentioned this pull request Jul 1, 2025
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.

5 participants