question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Request] run user-added rollup plugins at dev time, not just build time!

See original GitHub issue

hi! 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:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
underfincommented, Aug 4, 2020

Yeah, vite is support rollup plugin with build, you can see here

0reactions
sw-yxcommented, Aug 4, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found