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

feature: allow alias to submodule paths #2715

Closed
lukeed opened this issue Dec 6, 2022 · 0 comments
Closed

feature: allow alias to submodule paths #2715

lukeed opened this issue Dec 6, 2022 · 0 comments

Comments

@lukeed
Copy link
Contributor

lukeed commented Dec 6, 2022

It can be useful to alias framework/entry to other submodules within the framework package. I have a CLI that accepts flags that change what /entry points to & cannot use the new alias option to achieve this.

Right now, esbuild throws this error if you attempt to do that:

Error: Build failed with 1 error:
error: Invalid alias name: "framework/entry"

The workaround (previous approach) is to alias the entry via a plugin's resolve hook.

@evanw evanw closed this as completed in 270a210 Dec 19, 2022
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

No branches or pull requests

1 participant