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 a way to inject more rollup plugins during the build phase #333

Closed
samccone opened this issue Jan 20, 2021 · 4 comments
Closed

Expose a way to inject more rollup plugins during the build phase #333

samccone opened this issue Jan 20, 2021 · 4 comments
Assignees

Comments

@samccone
Copy link
Contributor

Currently if I want to run some custom processing during the build phase I have no way to hook into the hardcoded rollup plugin config. It would be nice to expose a way to add in plugins in as a build escape hatch.

@samccone
Copy link
Contributor Author

Rich let me know if this violates any design principles you are following. If not happy to propose a change.

@benmccann
Copy link
Member

@samccone I'm curious - what's the processing that you want to do?

@samccone
Copy link
Contributor Author

samccone commented Jan 20, 2021

I would like to do some compile time environment variable replacements in the FE depending on my deployment target (staging|prod) ect.

(to be clear I was able to do this with sapper previously)

@Rich-Harris
Copy link
Member

Now that we're using Vite, we can add Rollup plugins to vite.config.js

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

3 participants