News for hackers. Stuff that matters.
Re:FicusJS by spankalee on Sunday March 28, 2021 @08:04PM (#26616176)
I work on LitElement and if you want to use it buildless you can do so with the JavaScript reactive properties API (so you don't need TypeScript or Babel decorators to declare properties) and Chrome 89's support for import maps.

Generally, I think an import specifier rewriting dev server like Web Dev Server is the way to go since it'll work with so many other libraries out there.

Re:FicusJS by floatboth on Sunday March 28, 2021 @09:25PM (#26616731)
How lightweight is Web Dev Server? Back when the official way to go was still polyserve, I've had to make this:

https://github.com/unrelentingtech/es-module-devserver

which is a tiny middleware that uses regexps to accomplish the task instead of dragging in a JS parser :)

Re:FicusJS by Sn0wCoder on Sunday March 28, 2021 @09:33PM (#26616793)
Thanks, will give it try.
Re:FicusJS by roopawl on Sunday March 28, 2021 @09:58PM (#26616921)
I don't think you'll ever get away without a build chain using LitElement. If you are, I think your project is a toy, hobby, or very far from complete
Re:FicusJS by maga on Monday March 29, 2021 @06:49AM (#26619822)
I have been using lit-html for years now, and lit-element for a couple years all in vanilla js for evergreen browsers with the only build step being bundling for production. Here is one of the projects: https://cisterna.app