Labs Feedback: @lit-labs/compiler #4117
Replies: 6 comments 2 replies
-
I see a bunch of people giving this the 👍 reaction, but since we haven't released the package I know that you haven't tried it. I wonder if we need to use a different emoji so people don't use 👍 to mean they just like the idea? |
Beta Was this translation helpful? Give feedback.
-
The pre-release has been published! You can now test this labs package with |
Beta Was this translation helpful? Give feedback.
-
For those using Webpack, it seems the configuration should be something like this:
|
Beta Was this translation helpful? Give feedback.
-
Nice Work @AndrewJakubowicz, It would be gamechanger if this works with vite as well. |
Beta Was this translation helpful? Give feedback.
-
I would like to discuss the possibilities of distributing this in other ways than a TS-transform and rollup plugin (as mentioned in the RFC). Not having an option to transform a single file without additional tooling makes it hard or impractical to use the compiler in esoteric or custom build environments. The immediate issue is that it is not possible to use the compiler with esbuild and in extension Vite in development mode. It seems to me that the compiler should be standalone and not force consumers to use a certain toolchain that depends on TSC. What would the practical implications be if this was to be implemented without the requirement of TSC? Concerning providing plugins for other tools, one alternative would be to use some thing like https://github.com/unjs/unplugin. Seems like it should be fairly simple to build given that a transform function for a single file is available. |
Beta Was this translation helpful? Give feedback.
-
how to use this tool in vitejs ? |
Beta Was this translation helpful? Give feedback.
-
@lit-labs/compiler
exports a TypeScript Transformer that can be run over your JavaScript or TypeScript files to optimize away thelit-html
prepare render phase. For template heavy applications this can result in a quicker first render.We want to collect your feedback on your experiences with
@lit-labs/compiler
as we iterate on it according to our Lit Labs process and move the package towards possible graduation or retirement.Please try
@lit-labs/compiler
and tell us about your experience. Leave comments with your thoughts; highlight what issues or missing features you're blocked on; give a link to a project that uses it; etc.And so we can have some numbers to look at, you can add reactions to this comment to indicate your experience with this package:
🚀 I have tried this package and it works great. I need it. Ship it!
👍 I have tried this package and it seems like a good idea.
😕 I have tried this package and would use it, but it has serious bugs or missing features.
👀 I am interested, but haven't tried the package yet.
👎 I'm not interested in this package.
Note: other reactions like 😄, 🎉, and ❤️ don't mean anything as part of this scheme. You probably mean, and please use, 🚀, 👍, or 👀.
Beta Was this translation helpful? Give feedback.
All reactions