You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
as currently in docs for installing this into dependencies of package.json.
or
npm i -D lit
which will install it into devDependencies?
I'm new in lit and just wonder, if this is a runtime library or compiling library. If this is only a library required during development, it should be installed with -D into devDependencies. If this library is included in the build and run in browser then keep it as it is.
The text was updated successfully, but these errors were encountered:
If you're making components with Lit, it is meant to be used in runtime so it is a regular dependency, not a dev dependency. However, the size is very small as it takes advantage of existing platform features.
Lit is meant to work without any compile or build step. It's published as JavaScript modules to work directly in modern browsers. Of course, users can choose to use TypeScript with a compiler or other build tools for the benefits they bring.
There is a @lit-labs/compiler package but it's optional and only meant to offload initial template preparation step. It'll still require Lit client code for updates.
as currently in docs for installing this into
dependencies
of package.json.or
which will install it into
devDependencies
?I'm new in lit and just wonder, if this is a runtime library or compiling library. If this is only a library required during development, it should be installed with
-D
intodevDependencies
. If this library is included in the build and run in browser then keep it as it is.The text was updated successfully, but these errors were encountered: