Replies: 1 comment 3 replies
-
While I am investigating how to reduce the bundle size, I happen to see this post. ✌️ In my perspective, I am 100% in favor of reducing bundle size as much as possible. I am building a dsl-based web forms solution. Of course there are some parts in my project that don’t care about the bundle size. For example the cli for parsing and validating form definition files, and the vscode extension for helping people writing files. But in addition, it also has a part that is bundle size sensitive. For example the dsl evaluator that will run in frontend. Currently my bundle is 1M+ while it only requires a parser following this way. This size is totally unacceptable for me. So my question is:
|
Beta Was this translation helpful? Give feedback.
-
With our 3.0 release coming up fairly soon, we're planning a few breaking API changes. One of them might be #1258, which splits the LSP related services from the general Langium services. The goal of this change is to be able to bundle Langium based applications without the LSP code and the LSP related dependencies, thereby reducing bundle size.
This would roughly decrease bundle size by 100kb. However, this is only for the use case of using Langium without any editing services. Language servers using Langium will not change in size with this PR.
We're still evaluating whether this change benefits the community as a whole or only introduces unnecessary complexity to the project. For that end, we want to know from the community how they use Langium.
28 votes ·
Beta Was this translation helpful? Give feedback.
All reactions