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

refactor: simplify resource logic #445

Merged
merged 1 commit into from
Mar 9, 2025
Merged

Conversation

BobbieGoede
Copy link
Member

This refactor mostly changes the way options are passed around in the resource plugin, and preserves the original option names to make it easier to keep track of where the values come from.

@BobbieGoede BobbieGoede requested a review from kazupon March 9, 2025 10:45
@BobbieGoede BobbieGoede self-assigned this Mar 9, 2025
@@ -540,33 +463,6 @@ function webpackLike(
// HMR for webpack
}

function normalizeConfigResolveAlias(
Copy link
Member Author

Choose a reason for hiding this comment

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

This code was not used in the vite logic of the plugin so it was no longer needed

@kazupon kazupon added Type: Refactoring A code change that neither fixes a bug nor adds a feature Package: unplugin-vue-i18n labels Mar 9, 2025
Copy link
Member

@kazupon kazupon left a comment

Choose a reason for hiding this comment

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

Good job 👍!
Thanks!

@kazupon kazupon merged commit 60d8cf7 into main Mar 9, 2025
22 checks passed
@kazupon kazupon deleted the refactor/simplify-resource-logic branch March 9, 2025 11:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Package: unplugin-vue-i18n Type: Refactoring A code change that neither fixes a bug nor adds a feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants