{"id":15506230,"url":"https://github.com/fi3ework/vite-plugin-web-components-hmr","last_synced_at":"2025-10-18T08:17:24.948Z","repository":{"id":66226795,"uuid":"586324138","full_name":"fi3ework/vite-plugin-web-components-hmr","owner":"fi3ework","description":"Provides Vite HMR for web components(vanilla, Lit, Fast, List, Haunted).","archived":false,"fork":false,"pushed_at":"2024-10-08T03:23:37.000Z","size":3661,"stargazers_count":8,"open_issues_count":2,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-23T11:15:43.242Z","etag":null,"topics":["fast-element","haunted","hmr","list-elements","lit","lit-element","lit-html","vite","vite-plugin","web-components"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/vite-plugin-web-components-hmr","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/fi3ework.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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-01-07T18:21:42.000Z","updated_at":"2025-01-13T15:30:48.000Z","dependencies_parsed_at":null,"dependency_job_id":"efebe9e1-a203-40a3-be82-38883d322f9d","html_url":"https://github.com/fi3ework/vite-plugin-web-components-hmr","commit_stats":{"total_commits":17,"total_committers":3,"mean_commits":5.666666666666667,"dds":"0.11764705882352944","last_synced_commit":"23dace869513d7e2c353323d6adc181aef45f065"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/fi3ework/vite-plugin-web-components-hmr","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fi3ework%2Fvite-plugin-web-components-hmr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fi3ework%2Fvite-plugin-web-components-hmr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fi3ework%2Fvite-plugin-web-components-hmr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fi3ework%2Fvite-plugin-web-components-hmr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fi3ework","download_url":"https://codeload.github.com/fi3ework/vite-plugin-web-components-hmr/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fi3ework%2Fvite-plugin-web-components-hmr/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260273181,"owners_count":22984439,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["fast-element","haunted","hmr","list-elements","lit","lit-element","lit-html","vite","vite-plugin","web-components"],"created_at":"2024-10-02T09:26:23.045Z","updated_at":"2025-10-18T08:17:24.783Z","avatar_url":"https://github.com/fi3ework.png","language":"JavaScript","readme":"🫡 This repository is heavily forked from [@open-wc/dev-server-hmr](https://github.com/open-wc/open-wc/tree/c5444f79ac863d68abdbf84e5c49d9b07223bd1c/packages/dev-server-hmr) under [MIT](https://github.com/open-wc/open-wc/blob/c5444f79ac/LICENSE) licence, and adapting for the Vite plugin system.\n\n---\n\n## Installation\n\n```bash\n# pnpm\npnpm add vite-plugin-web-components-hmr -D\n# yarn\nyarn add vite-plugin-web-components-hmr -D\n# npm\nnpm i vite-plugin-web-components-hmr -D\n```\n\n## Usage\n\nThe options for the plugin is exactly the same as [@open-wc/dev-server-hmr](https://www.npmjs.com/package/@open-wc/dev-server-hmr). Check the documentation [here](https://www.npmjs.com/package/@open-wc/dev-server-hmr).\n\n```js\n// example for using with Lit\n\nimport { defineConfig } from 'vite'\nimport { hmrPlugin, presets } from 'vite-plugin-web-components-hmr'\n\nexport default defineConfig({\n  plugins: [\n    hmrPlugin({\n      include: ['./src/**/*.ts'],\n      presets: [presets.lit],\n    }),\n  ],\n})\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffi3ework%2Fvite-plugin-web-components-hmr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffi3ework%2Fvite-plugin-web-components-hmr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffi3ework%2Fvite-plugin-web-components-hmr/lists"}