[Request] run user-added rollup plugins at dev time, not just build time!
See original GitHub issuehi! vite is great!! 😃 😃 😃
Is your feature request related to a problem? Please describe.
i would like to run vite with a custom rollup plugin as a loader for some nonstandard files. I tried using rollupInputOptions
, but that seems to only affect build time output - and is not run during dev time. this seems like an oversight?
Describe the solution you’d like
custom rollup plugins should run during dev to have dev-build parity… if it makes sense, eg. some Rollup hooks might not, but other hooks like load
and transform
might work?
Describe alternatives you’ve considered
not using vite
Additional context
i’d be intersted in contributing this feature if its inline with goals. guidance appreciated!
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Run rollup plugin when everything on build is finished
The rollup site lists all the available plugin hooks. generateBundle seems like what you'd want. generateBundle (formerly onwrite and ...
Read more >Bundle Stylesheets and Add LiveReload With Rollup
Learn how to use the JavaScript bundler Rollup to process stylesheets using PostCSS and rebuild & reload files when changes are made in...
Read more >How to troubleshoot NPM problems - JFrog
The libcurl terminal application can run basic REST API commands such as GET or PUT options. Your Artifactory request logs will display the...
Read more >rollup.js
rollup.config.js (building more than one bundle) export default [ { input: ... you can specify the option multiple times, you can omit the...
Read more >Setting Up a JavaScript Build Process using Rollup
We can then run Rollup on src/scripts/foo.js , note the option -c which ... After importing the babel plugin, we call it in...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yeah, vite is support rollup plugin with build, you can see here
i saw that, however, this qtn is more about emitting the CSS file during dev. i understand that this doesnt work. i will figure out something else. cheers.