npm/pnpm install
npm/pnpm start
ornode esbuild.mjs
.- Run the Live Server in VSCode or open the file in the browser.
- Done, every change made in the
src
folder will trigger a refresh.
- Create the file somewhere.
- Add the file extension in esbuild.mjs, in the
loader
object. import
the file from your ts file.