{"id":13417482,"url":"https://github.com/sveltejs/vite-plugin-svelte","last_synced_at":"2026-01-12T10:11:47.675Z","repository":{"id":36976285,"uuid":"348488920","full_name":"sveltejs/vite-plugin-svelte","owner":"sveltejs","description":"Svelte plugin for https://vite.dev","archived":false,"fork":false,"pushed_at":"2025-04-22T19:26:18.000Z","size":6317,"stargazers_count":910,"open_issues_count":16,"forks_count":114,"subscribers_count":14,"default_branch":"main","last_synced_at":"2025-04-23T23:17:01.814Z","etag":null,"topics":["svelte","vite","vite-plugin"],"latest_commit_sha":null,"homepage":"","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/sveltejs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","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,"zenodo":null},"funding":{"open_collective":"svelte"}},"created_at":"2021-03-16T20:54:27.000Z","updated_at":"2025-04-22T14:41:18.000Z","dependencies_parsed_at":"2023-10-05T08:55:15.864Z","dependency_job_id":"f2f5915b-fdc2-490d-a93c-35a51583c251","html_url":"https://github.com/sveltejs/vite-plugin-svelte","commit_stats":{"total_commits":811,"total_committers":36,"mean_commits":22.52777777777778,"dds":0.4821208384710234,"last_synced_commit":"52e4a4f165dea8442ec729d73cd43f1aef2eed08"},"previous_names":[],"tags_count":142,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sveltejs%2Fvite-plugin-svelte","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sveltejs%2Fvite-plugin-svelte/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sveltejs%2Fvite-plugin-svelte/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sveltejs%2Fvite-plugin-svelte/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sveltejs","download_url":"https://codeload.github.com/sveltejs/vite-plugin-svelte/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250528902,"owners_count":21445519,"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":["svelte","vite","vite-plugin"],"created_at":"2024-07-30T22:00:37.995Z","updated_at":"2026-01-12T10:11:47.665Z","avatar_url":"https://github.com/sveltejs.png","language":"JavaScript","funding_links":["https://opencollective.com/svelte"],"categories":["Plugins","JavaScript"],"sub_categories":["Svelte"],"readme":"# @sveltejs/vite-plugin-svelte\n\n[![npm version](https://img.shields.io/npm/v/@sveltejs/vite-plugin-svelte)](https://www.npmjs.com/package/@sveltejs/vite-plugin-svelte)\n[![CI](https://github.com/sveltejs/vite-plugin-svelte/actions/workflows/ci.yml/badge.svg)](https://github.com/sveltejs/vite-plugin-svelte/actions/workflows/ci.yml)\n[![Chat](https://img.shields.io/discord/457912077277855764?label=chat\u0026logo=discord)](https://svelte.dev/chat)\n\nThe official [Svelte](https://svelte.dev) plugin for [Vite](https://vitejs.dev).\n\n## Installation\n\n```bash\nnpm install --save-dev @sveltejs/vite-plugin-svelte\n```\n\n## Usage\n\n```js\n// vite.config.js\nimport { defineConfig } from 'vite';\nimport { svelte } from '@sveltejs/vite-plugin-svelte';\n\nexport default defineConfig({\n  plugins: [\n    svelte({\n      /* plugin options */\n    })\n  ]\n});\n```\n\n## Documentation\n\n- [Plugin options](./docs/config.md)\n- [Svelte Inspector](./docs/inspector.md)\n- [FAQ](./docs/faq.md)\n\n## Packages\n\n| Package                                                                         | Changelog                                                       |\n| ------------------------------------------------------------------------------- | --------------------------------------------------------------- |\n| [@sveltejs/vite-plugin-svelte](packages/vite-plugin-svelte)                     | [Changelog](packages/vite-plugin-svelte/CHANGELOG.md)           |\n| [@sveltejs/vite-plugin-svelte-inspector](packages/vite-plugin-svelte-inspector) | [Changelog](packages/vite-plugin-svelte-inspector/CHANGELOG.md) |\n\n## Got a question? / Need help?\n\nJoin the [Svelte Discord server](https://svelte.dev/chat)!\n\n## Development\n\nAll scripts work from monorepo-root.\nThe plugins are unbundled esm, a build step is not required while developing locally, but restarting local dev-servers can be needed to apply changes.\n\n- `pnpm i` to install dependencies\n- `pnpm playwright install chromium` to install required playwright browser binaries via local playwright-core\n\n  \u003e **NOTE**\n  \u003e This repo uses `playwright-core` with a bin alias to `playwright` via package.json script\n  \u003e Calling `pnpm dlx playwright install chromium` will not work.\n\n- `pnpm check` and `pnpm:test` to validate changes\n- `pnpm format` to format source code\n- `pnpm test:unit`, `pnpm test:serve` or `pnpm test:build` to run a subset of tests\n- `pnpm test \u003ce2e-directory-name\u003e` to focus a specific testsuite\n- `pnpm changeset` to generate a changeset\n- `pnpm generate:types` to generate public types from jsdoc (this is required when changing types and validated in ci)\n\n## Credits\n\n- [Svelte](https://svelte.dev) and [Vite](https://github.com/vitejs/vite#readme) creators, maintainers and contributors\n- [rixo](https://github.com/rixo) - without svelte-hmr and your support this would not have been possible\n- [intrnl](https://github.com/intrnl) - initial inspiration from https://github.com/intrnl/vite-plugin-svelte\n\n## License\n\n[MIT](./LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsveltejs%2Fvite-plugin-svelte","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsveltejs%2Fvite-plugin-svelte","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsveltejs%2Fvite-plugin-svelte/lists"}