feat: Do not add default plugins to Vite #2451
Open
+24
−4
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Due to vite's plugin resolution and lack of deduplication/overriding, we cannot really have any defaults for sets of plugins in the Vite config.
This commit removes the default plugins from the Vite config from the CLI-generated React app, and instead adds them to the generated app template.
Fixes #2437
Refs discord discussion: https://discord.com/channels/686873244791210014/812664118887841813/threads/1325994905822302343
Select what type of change this PR introduces:
Update Waspc ChangeLog and version if needed
If you did a bug fix, new feature, or breaking change, that affects waspc, make sure you satisfy the following: