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: using oxc resolver #39

Closed
wants to merge 8 commits into from
Closed

feat: using oxc resolver #39

wants to merge 8 commits into from

Conversation

underfin
Copy link
Collaborator

@underfin underfin commented Sep 2, 2024

Description

Alias

  • matched alias key
    The @rollup/alias-plugin alias key support regex, but the oxc resolver not support it.

  • matched alias value behavior
    The vite resolver alias has a case like this { '/@vite/env': '/@fs/xxx' }, It resolved by @rollup/alias-plugin to /@fs/xxx, and it internal will call PluginContext#resolveId to resolve /@fs/xxx, it will resolved to xxx by viter-resolver.
    The oxc resolver alias will matched to /@fs/xxx and find it not found.

Look like the rolldown BuiltinAliasPlugin could suitable for it.

@underfin underfin marked this pull request as draft September 2, 2024 09:39
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.

2 participants