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

fix: throw error when there had conflict between chunkName and entryPointChunk #4795

Merged
merged 1 commit into from
Nov 28, 2023

Conversation

bvanjoi
Copy link
Collaborator

@bvanjoi bvanjoi commented Nov 28, 2023

Fixes #4664
Fixes #4318

This PR introduces three changes:

  1. Adds a loc field to the AsyncDependenciesBlock.
  2. Modifies the return type of both Compilation::add_named_chunk and Compilation::add_chunk from &mut Chunk to ChunkUKey. It can help us avoid issues related to ownership.
  3. Throws an error if there's a conflict between chunkName and entryPointChunk.

@github-actions github-actions bot added the release: bug fix release: bug related release(mr only) label Nov 28, 2023
@bvanjoi bvanjoi changed the title fix: throw error when there had confict between chunkName and `entr… fix: throw error when there had conflict between chunkName and entryPointChunk Nov 28, 2023
@bvanjoi bvanjoi added this pull request to the merge queue Nov 28, 2023
Merged via the queue into web-infra-dev:main with commit 2250906 Nov 28, 2023
20 checks passed
@bvanjoi bvanjoi deleted the fix-4664 branch November 28, 2023 09:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release: bug fix release: bug related release(mr only)
Projects
None yet
2 participants