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

Expose Public environment variables on HTML bundling #17019

Open
andrepadez opened this issue Feb 3, 2025 · 0 comments
Open

Expose Public environment variables on HTML bundling #17019

andrepadez opened this issue Feb 3, 2025 · 0 comments
Labels
bundler Something to do with the bundler enhancement New feature or request

Comments

@andrepadez
Copy link

What is the problem this feature would solve?

while using bun ./index.html to run / compile Javascript frontend projects (incoming feature)
would love to expose and have access to public environment variables.

Analogous to Vite:

const API_URL = import.meta.env.VITE_API_URL

What is the feature you are proposing to solve the problem?

be able to use environment variables on the new html/javascript compilation

What alternatives have you considered?

Not really something that would have an alternative.

@andrepadez andrepadez added the enhancement New feature or request label Feb 3, 2025
@RiskyMH RiskyMH added the bundler Something to do with the bundler label Feb 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bundler Something to do with the bundler enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants