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

A nollup API #83

Closed
antony opened this issue May 18, 2020 · 3 comments
Closed

A nollup API #83

antony opened this issue May 18, 2020 · 3 comments

Comments

@antony
Copy link

antony commented May 18, 2020

Hi.

Without really knowing how possible this is, based on how nollup works - is it possible / are there any plans for nollup to expose an API matching Rollup's API?

The reason being is that we're toying with the possiblity of using nollup for development mode in Sapper / Svelte apps to speed up the developer feedback loop, but currently I've not been able to get too far due to the lack of a compatible API.

Thread is here sveltejs/sapper#1207 (comment)

@PepsRyuu
Copy link
Owner

PepsRyuu commented May 18, 2020

Hey Antony!

There is an API already available that's aligned to Rollup (there may be some slight discrepancies though given the different objectives): https://github.com/PepsRyuu/nollup/blob/master/API.md

Is there something in particular that's missing or not working as expected?

If you're looking for HMR as well, that's included as part of the dev-middleware which can also be used optionally: https://github.com/PepsRyuu/nollup/blob/master/API.md#dev-middleware

@antony
Copy link
Author

antony commented May 18, 2020

Hey @PepsRyuu it might just be me! I think I was getting confused about where the generate method originated from :)

I'm getting a bit further now. Thanks for pointing me at the API docs, not sure how I missed those the first time around. I'm going to examine @rixo 's fork to see how his integration works too.

@antony antony closed this as completed May 18, 2020
@PepsRyuu
Copy link
Owner

Let me know if there's anything I can do to assist with this! It seems very interesting! :)

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