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

feat: global only alias #18005

Merged

Conversation

patak-dev
Copy link
Member

Description

We started work to make resolve.alias per-environment at #17583. We discussed with the team that it isn't clear if this option should be per-environment, as it may require other tools reading Vite aliases to be aware of environments. The feature wasn't completely implemented either, as it would require we add one rollup alias plugin per environment (using applyToEnvironment or a wrapper Vite plugin that wraps these and forwards the resolveId hook, unrelated to this PR but this would be a great use case for the functional plugins (environment) => plugins that we removed for now).

This PR makes alias global only for now, and clarifies the Resolve types. preserveSymlinks is also global only.

Copy link

stackblitz bot commented Sep 3, 2024

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

@patak-dev patak-dev merged commit 0250864 into v6/environment-api Sep 4, 2024
12 of 15 checks passed
@patak-dev patak-dev deleted the feat/environment-api-global-only-alias branch September 4, 2024 08:54
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.

1 participant