3 ms·
I came across this in desperation trying to get a Lit element to work in the browser. That requires "bare" Node module names on imports, something the Lit folks
by mimixco 5y ago
I came across this in desperation trying to get a Lit element to work in the browser. That requires "bare" Node module names on imports, something the Lit folks admit doesn't work any any browser! Good times. Also, Lit works in JS but is more elegant in TypeScript.
This Vite server handles both transparently with instant hot reloads in the browser as you change any files. You can <script src="someFile.ts"> and it just works. It also resolves bare module imports so you can suck in Node modules.
Finally, it has a "bundler" function to package it all into a final app when you're done w/ developing.