Skip to content

Conversation

@clydin
Copy link
Member

@clydin clydin commented Nov 18, 2025

Refactors the resolveId hook in the angular:test-in-memory-provider Vite plugin to improve clarity, efficiency, and cross-platform consistency. Also optimizes the plugin by introducing a 'loadResultFile' helper. This helper utilizes 'TextDecoder' to decode memory files, avoiding unnecessary buffer copies associated with 'Buffer.from().toString()'. It also removes duplicate file reading logic for source maps.

Refactors the `resolveId` hook in the `angular:test-in-memory-provider`
Vite plugin to improve clarity, efficiency, and cross-platform consistency.

Key improvements include:
- Consolidating path resolution logic into a single flow.
- Ensuring all resolved paths are absolute and consistently POSIX-formatted.
- Prioritizing direct test entry point lookups.
- Removing redundant checks and assertions.
This commit optimizes the 'angular:test-in-memory-provider' Vitest plugin by introducing a 'loadResultFile' helper. This helper utilizes 'TextDecoder' to decode memory files, avoiding unnecessary buffer copies associated with 'Buffer.from().toString()'. It also removes duplicate file reading logic for source maps.
@clydin clydin added the target: patch This PR is targeted for the next patch release label Nov 18, 2025
@clydin clydin added the action: review The PR is still awaiting reviews from at least one requested reviewer label Nov 18, 2025
@clydin clydin removed the action: review The PR is still awaiting reviews from at least one requested reviewer label Nov 18, 2025
@alan-agius4 alan-agius4 added the action: merge The PR is ready for merge by the caretaker label Nov 19, 2025
@ngbot
Copy link

ngbot bot commented Nov 19, 2025

I see that you just added the action: merge label, but the following checks are still failing:
    failure status "mergeability" is failing
If you want your PR to be merged, it has to pass all the CI checks.
If you can't get the PR to a green state due to flakes or broken main, please try rebasing to main and/or restarting the CI job. If that fails and you believe that the issue is not due to your change, please contact the caretaker and ask for help.

@alan-agius4 alan-agius4 added action: merge The PR is ready for merge by the caretaker and removed action: merge The PR is ready for merge by the caretaker labels Nov 19, 2025
@ngbot
Copy link

ngbot bot commented Nov 19, 2025

I see that you just added the action: merge label, but the following checks are still failing:
    failure status "mergeability" is failing
If you want your PR to be merged, it has to pass all the CI checks.
If you can't get the PR to a green state due to flakes or broken main, please try rebasing to main and/or restarting the CI job. If that fails and you believe that the issue is not due to your change, please contact the caretaker and ask for help.

@dgp1130 dgp1130 merged commit 09e5e32 into angular:main Nov 19, 2025
36 checks passed
@dgp1130
Copy link
Collaborator

dgp1130 commented Nov 19, 2025

This PR was merged into the repository. The changes were merged into the following branches:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

action: merge The PR is ready for merge by the caretaker area: @angular/build target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants