4 ms·
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 decora
by spankalee 6y ago
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.
- floatboth 6y agoHow 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 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 :)
- Sn0wCoder 6y agoThanks, will give it try.
- roopawl 6y agoI 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
- maga 6y agoI 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 https://cisterna.app