Skip to content

feat: global only alias#18005

Merged
patak-cat merged 2 commits into
v6/environment-apifrom
feat/environment-api-global-only-alias
Sep 4, 2024
Merged

feat: global only alias#18005
patak-cat merged 2 commits into
v6/environment-apifrom
feat/environment-api-global-only-alias

Conversation

@patak-cat
Copy link
Copy Markdown
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.

@bolt-new-by-stackblitz
Copy link
Copy Markdown

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

@patak-cat patak-cat merged commit 0250864 into v6/environment-api Sep 4, 2024
@patak-cat patak-cat 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