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

Nollup for backend #217

Open
derolf opened this issue Oct 17, 2021 · 1 comment
Open

Nollup for backend #217

derolf opened this issue Oct 17, 2021 · 1 comment

Comments

@derolf
Copy link

derolf commented Oct 17, 2021

We are using rollup to bundle a backend server (nodejs with koa).

For development, we run rollup in watch mode with the run-plugin that initially starts and then restarts the sever on every change.

Would be nice to use nollup with HMR instead.

Possible?

@PepsRyuu
Copy link
Owner

PepsRyuu commented Oct 17, 2021

Hmmm. Off the top of my head, although Nollup is written for browsers in mind, if the browsers API were polyfilled (ie. WebSocket), it could probably work. I've never attempted anything like it before. Do you have a sample project of what you're doing at the moment?

Looking at the run plugin specifically. It looks like it depends on writeBundle, which is intentionally not implemented because Nollup never writes to disk. So that's going to be an issue that will need to be resolved somehow.

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

2 participants