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

[@rollup/plugin-alias] Allow to configure alias based on entry point #1719

Open
Et7f3 opened this issue May 18, 2024 · 0 comments
Open

[@rollup/plugin-alias] Allow to configure alias based on entry point #1719

Et7f3 opened this issue May 18, 2024 · 0 comments

Comments

@Et7f3
Copy link

Et7f3 commented May 18, 2024

  • Rollup Plugin Name: @rollup/plugin-alias
  • Rollup Plugin Version: 5.1.0

Feature Use Case

We have a portion of UI that is accessible only to a part of our user and another part accessible only to other part. In this case we want to avoid exposing UI because all buttons won't be functional, we also want to avoid downloading the chunk of code not related to our user kind. We could do this dynamically with boilerplate but it will complexify the code and be less optimal.

Feature Proposal

Allow to specify alias based on entry selected. If you want to see other thought vitejs/vite#16685 might provides informations (because I opened there but we come to the conclusion is it not asked in the right project). Maybe this issue need to be moved to rollup core directly.

@Et7f3 Et7f3 changed the title [@rollup/plugin-alias] [@rollup/plugin-alias] Allow to configure alias based on entry point May 18, 2024
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