Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

Allow usage of a valid Rollup config #1302

Closed
wants to merge 1 commit into from

Conversation

benmccann
Copy link
Member

@benmccann benmccann commented Jul 3, 2020

Today it's not possible to use a valid Rollup configuration file with a Sapper project.

Forcing users to use an invalid config file doesn't have many benefits. It does have some drawbacks, however. E.g. it makes it harder to compare the output of Rollup's CLI implementation vs Sapper's Rollup CLI reimplementation. I've hit many issues here. Not being able to execute Rollup directly has caused a lot of difficulty in debugging and in requesting help from the Rollup team.

I implemented this looking at the name of the input. Arguably we could instead add an id field to look for though this would be a bit of a non-standard field. I filed a feature request to make it more standardized rollup/rollup#3687

Eventually I'd like to consider moving the Sapper compiler to be a bundler plugin (#1346). This would be the first step of that. That would make it much easier to use other development systems like nollup, vite, or snowpack. Today there's no way to use an alternative bundler like nollup with Sapper because Sapper must have an implementation for every bundler. It'd be a small change to enable it (rixo@faca5e0) and @rixo already has a fork that does that, but I'm not sure it's the right separation of concerns that Sapper should have to know about every possible build system

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant