{"id":16666493,"url":"https://github.com/patricknelson/svelte-v4-custom-elements-define","last_synced_at":"2026-04-26T19:32:02.471Z","repository":{"id":171487017,"uuid":"647997797","full_name":"patricknelson/svelte-v4-custom-elements-define","owner":"patricknelson","description":"Repro for issue #8681","archived":false,"fork":false,"pushed_at":"2023-06-01T19:48:03.000Z","size":29,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-26T07:51:32.227Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://github.com/sveltejs/svelte/issues/8681","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/patricknelson.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-06-01T01:41:32.000Z","updated_at":"2024-03-30T15:28:32.000Z","dependencies_parsed_at":null,"dependency_job_id":"51fd0a2b-ec9c-423c-90a3-cb6f328a0bbe","html_url":"https://github.com/patricknelson/svelte-v4-custom-elements-define","commit_stats":null,"previous_names":["patricknelson/svelte-v4-custom-elements-define"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/patricknelson/svelte-v4-custom-elements-define","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patricknelson%2Fsvelte-v4-custom-elements-define","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patricknelson%2Fsvelte-v4-custom-elements-define/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patricknelson%2Fsvelte-v4-custom-elements-define/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patricknelson%2Fsvelte-v4-custom-elements-define/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/patricknelson","download_url":"https://codeload.github.com/patricknelson/svelte-v4-custom-elements-define/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patricknelson%2Fsvelte-v4-custom-elements-define/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32310804,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T19:15:34.056Z","status":"ssl_error","status_checked_at":"2026-04-26T19:15:15.467Z","response_time":129,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-12T11:11:07.558Z","updated_at":"2026-04-26T19:32:02.455Z","avatar_url":"https://github.com/patricknelson.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# svelte-v4-custom-elements-define\n\nDemos an issue with manually defining custom elements in Svelte 4 (pre-release) using `customElements.define()`.\n\n\n## Get started\n\nInit repo\n\n```bash\ngit clone https://github.com/patricknelson/svelte-v4-custom-elements-define.git\ncd svelte-v4-custom-elements-define\nnpm i\n```\n\nReproduce bug\n\n```bash\ngit checkout main\nnpm run dev\n```\n\nTest workaround\n\n```bash\ngit checkout workaround\nnpm run dev\n```\n\n## From scratch\n\nInit base files\n\n```bash\n# select Svelte + JavaScript\nnpm init vite\n\n# Install but overwrite with Svelte v4\nnpm i -D svelte@4.0.0-next.0\n```\n\nUpdate Svelte compiler options in `vite.config.js` to enable custom elements, i.e. `customElement: true`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatricknelson%2Fsvelte-v4-custom-elements-define","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpatricknelson%2Fsvelte-v4-custom-elements-define","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatricknelson%2Fsvelte-v4-custom-elements-define/lists"}