patricknelson / svelte-v4-custom-elements

For demoing custom elements in Github issues

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

svelte-v4-custom-elements

Special repo setup strictly for demoing bugs or other issues with custom elements in Svelte 4 (for use in Github issues).

Get started

Init repo

git clone https://github.com/patricknelson/svelte-v4-custom-elements.git
cd svelte-v4-custom-elements
npm i

Reproduce bug

git checkout BRANCH_NAME
npm run dev

From scratch

Init base files

# select Svelte + JavaScript
npm init vite

# Install Svelte v4 (if not already present)
npm i -D svelte@4.0.0

Update Svelte compiler options in vite.config.js to enable custom elements, i.e. customElement: true.

About

For demoing custom elements in Github issues

License:MIT License


Languages

Language:JavaScript 52.8%Language:HTML 32.1%Language:Svelte 15.1%