-
Notifications
You must be signed in to change notification settings - Fork 131
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
[Feature]: lit-html Rsbuild template configuration #3521
Comments
Thank you! it's our pleasure. ❤️ For the lit decorators issue, I checked the Lit documentation and it says "We recommend that TypeScript developers use experimental decorators for now". In Rsbuild, we can set source.decorators.version to |
If it works, we can follow the lit-element-starter-ts and enable experimentalDecorators by default in the Rsbuild lit templates. |
Thank you so much @chenjiahan for your thoughtful support on this request. You are exactly right, configuring source.decorators.version to "legacy" worked beautifully. I can now use field level decorators with Rsbuild. You make a great point about experimentalDecorators setting in tsconfig. That is also needed. If it is ok, I am happy to create a PR with these two changes specifically for the ts and js lit templates. What do you think? |
Here is a PR with the changes. Thanks again for your awesome work on this OSS project and for helping us advance our usage. Our team is thrilled to be using Rsbuild. |
PR merged 😄 |
What problem does this feature solve?
Hey Byte Infra team! Thanks so much for all the wonderful work you do in the Open Source Community. Projects like Rspack and Federation runtime are truly such amazing gifts to share with the world. Thank you.
Story:
As an engineer, I would like to use Rsbuild for Lit-HTML development.
There is a preset option for Lit-HTML in
npm create rsbuild@latest
.Problem:
When I try to use features of Lit-HTML framework like reactive properties, Rsbuild's default transpiler, SWC, is unable to handle the Field-Level Typescript Decorators Lit-HTML depends on.
Because this is a SWC limitation, not an Rsbuild limitation, I am trying to configure Rsbuild to use babel, but I am not successful.
Feature Request:
Could we collaborate on an Rsbuild configuration that supports Lit-HTML development and use this in the Rsbuild template for Lit-HTML projects?
I am currently trying an approach that looks like:
This is not working.
Is there any guidance from the community or Byte Infra team on how I can correctly figure Rsbuild for Lit-HTML development?
Thank you so much for your time and consideration. We are hoping to use Rsbuild for all development at Accuris
What does the proposed API look like?
In this feature request, there are no new APIs.
Rather, the output would be a new Rsbuild template for scaffolding Lit-HTML projects, using
npm create rsbuild@latest
CLI.The text was updated successfully, but these errors were encountered: