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

Offload dev-server feature to JS ecosystem #508

Open
kateinoigakukun opened this issue Dec 7, 2024 · 0 comments · May be fixed by #509
Open

Offload dev-server feature to JS ecosystem #508

kateinoigakukun opened this issue Dec 7, 2024 · 0 comments · May be fixed by #509

Comments

@kateinoigakukun
Copy link
Member

kateinoigakukun commented Dec 7, 2024

Motivation

The main problems in carton in my mind are:

  1. It takes too long to build carton plugin itself (~1m)
    • The major heavy build dependencies are mostly brought by dev-server (e.g. NIO, FSWatch, etc..)
  2. It's not easy to develop with existing JS bundler tools as we provide our own dev-server

Even though we pay non-trivial maintainance cost for the dev-server, it's not used when developing serious production Web client applications. This is because our dev-server works only when we change Swift code but such serious applications also have many JavaScript code they want to hot-reload.

Given that context, it would be better to get rid of our own dev-server from carton and offload the feature to external tools. It allows us focusing on bundling SwiftPM package into an ESM module.

@kateinoigakukun kateinoigakukun linked a pull request Dec 7, 2024 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant