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

docs(chunkSplitting): silence invalid config warning #13911

Closed
wants to merge 1 commit into from
Closed

docs(chunkSplitting): silence invalid config warning #13911

wants to merge 1 commit into from

Conversation

ghost
Copy link

@ghost ghost commented Jul 20, 2023

Description

The splitVendorChunk plugin was displaying this warning even when the consumer vite.config
was using the function form of output.manualChunk

When the consumer IS using a function form of manualChunks, this warning message is not needed.
I believe it was incorrectly being displayed anyway because of the missing else block

Additional context


What is the purpose of this pull request?

  • Bug fix
  • New Feature
  • Documentation update
  • Other

Before submitting the PR, please make sure you do the following

  • Read the Contributing Guidelines.
  • Read the Pull Request Guidelines and follow the PR Title Convention.
  • Check that there isn't already a PR that solves the problem the same way to avoid creating a duplicate.
  • Provide a description in this PR that addresses what the PR is solving, or reference the issue that it solves (e.g. fixes #123).
  • Ideally, include relevant tests that fail without this PR but pass with it.

When the consumer IS using a function form of manualChunks,
this warning message is not needed.

I believe it was incorrectly being displayed anyway because of
the missing `else` block
@stackblitz
Copy link

stackblitz bot commented Jul 20, 2023

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@ghost ghost changed the title fix(chunkSplitting): Silence invalid config warning fix(chunkSplitting): silence invalid config warning Jul 20, 2023
@ghost ghost changed the title fix(chunkSplitting): silence invalid config warning docs(chunkSplitting): silence invalid config warning Jul 20, 2023
@bluwy
Copy link
Member

bluwy commented Jul 21, 2023

Hi. We already have a PR at #13798. I forgot to follow-up on that and will merge that now. There's another improvement we can do noted at #13798 (comment) if you'd like to help out though. Closing this for now.

@bluwy bluwy closed this Jul 21, 2023
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.

None yet

1 participant