{"id":19330889,"url":"https://github.com/vbenjs/vite-plugin-vue-setup-extend","last_synced_at":"2025-04-06T11:09:06.091Z","repository":{"id":37394350,"uuid":"399839221","full_name":"vbenjs/vite-plugin-vue-setup-extend","owner":"vbenjs","description":"Extending the vue script setup syntactic sugar","archived":false,"fork":false,"pushed_at":"2022-04-18T07:02:04.000Z","size":185,"stargazers_count":152,"open_issues_count":12,"forks_count":19,"subscribers_count":4,"default_branch":"main","last_synced_at":"2024-12-24T09:06:17.719Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/vbenjs.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-08-25T13:59:37.000Z","updated_at":"2024-12-06T06:53:44.000Z","dependencies_parsed_at":"2022-07-08T16:47:16.423Z","dependency_job_id":null,"html_url":"https://github.com/vbenjs/vite-plugin-vue-setup-extend","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vbenjs%2Fvite-plugin-vue-setup-extend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vbenjs%2Fvite-plugin-vue-setup-extend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vbenjs%2Fvite-plugin-vue-setup-extend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vbenjs%2Fvite-plugin-vue-setup-extend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vbenjs","download_url":"https://codeload.github.com/vbenjs/vite-plugin-vue-setup-extend/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247471521,"owners_count":20944158,"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":[],"created_at":"2024-11-10T02:38:13.823Z","updated_at":"2025-04-06T11:09:06.070Z","avatar_url":"https://github.com/vbenjs.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vite-plugin-vue-setup-name-support\n\nMake the vue script setup syntax support the name attribute\n\n## Install (yarn or npm)\n\n**node version:** \u003e=12.0.0\n\n**vite version:** \u003e=2.0.0\n\n```bash\nyarn add vite-plugin-vue-setup-extend -D\n```\n\nor\n\n```bash\nnpm i vite-plugin-vue-setup-extend -D\n```\n\n## Usage\n\n- Config plugin in vite.config.ts. In this way, the required functions can be introduced as needed\n\n```ts\nimport { defineConfig, Plugin } from 'vite'\nimport vue from '@vitejs/plugin-vue'\nimport vueSetupExtend from 'vite-plugin-vue-setup-extend'\n\nexport default defineConfig({\n  plugins: [vue(), vueSetupExtend()],\n})\n```\n\n- SFC\n\n```html\n\u003ctemplate\u003e\n  \u003cdiv\u003ehello world {{ a }}\u003c/div\u003e\n\u003c/template\u003e\n\n\u003cscript lang=\"ts\" setup name=\"App\"\u003e\n  const a = 1\n\u003c/script\u003e\n```\n\n## Sample project\n\n[Vben Admin](https://github.com/anncwb/vue-vben-admin)\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvbenjs%2Fvite-plugin-vue-setup-extend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvbenjs%2Fvite-plugin-vue-setup-extend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvbenjs%2Fvite-plugin-vue-setup-extend/lists"}