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

Switch to Rollup to support modules #14

Open
justinfagnani opened this issue Dec 1, 2018 · 2 comments
Open

Switch to Rollup to support modules #14

justinfagnani opened this issue Dec 1, 2018 · 2 comments

Comments

@justinfagnani
Copy link

WebPack doesn't support module output. It's a shame that with WebPack we can't use the native module loader. Would you consider switching to Rollup?

@thepassle
Copy link
Owner

Hey Justin, I initially went with WebPack because of the convention "Use webpack for apps, and Rollup for libraries", but I agree that having a module output would play really nice with web components. Admittedly though, I don't have that much experience with Rollup so it will take me some time to research and create a set up for it.

Alternatively, there could be a similar package like create-lit-component or something like that. Either way, i'll spend some time and dive into this, thanks for pointing this out :)

@justinfagnani
Copy link
Author

"Use webpack for apps, and Rollup for libraries"

I've heard this, but I don't think it's a useful convention. First, you just shouldn't bundle module-based packages at all. Second, I don't think there's a meaningful distinction between the two, except that Rollup is a lot more module friendly.

Ideally for me, this project would work without bundling, and bundling would be a production-time-only optimization, with the choice of bundler being only a light-weight opinion that users could change easily.

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