{"id":16184170,"url":"https://github.com/mini-ghost/vite-async-component-loader","last_synced_at":"2025-10-06T03:52:01.703Z","repository":{"id":158247858,"uuid":"633910719","full_name":"Mini-ghost/vite-async-component-loader","owner":"Mini-ghost","description":"Vite plugin that easiest way loads component files as asynchronous components.","archived":false,"fork":false,"pushed_at":"2023-09-01T17:12:54.000Z","size":145,"stargazers_count":11,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-16T19:36:27.769Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/Mini-ghost.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-04-28T15:04:55.000Z","updated_at":"2023-05-27T08:24:41.000Z","dependencies_parsed_at":"2024-10-27T19:24:56.183Z","dependency_job_id":"6ae6f7b6-24e9-4a28-9115-3cd13a5c5f93","html_url":"https://github.com/Mini-ghost/vite-async-component-loader","commit_stats":{"total_commits":10,"total_committers":1,"mean_commits":10.0,"dds":0.0,"last_synced_commit":"1b448da50cedf92f6683b41642a87e803800dd8e"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/Mini-ghost/vite-async-component-loader","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mini-ghost%2Fvite-async-component-loader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mini-ghost%2Fvite-async-component-loader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mini-ghost%2Fvite-async-component-loader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mini-ghost%2Fvite-async-component-loader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Mini-ghost","download_url":"https://codeload.github.com/Mini-ghost/vite-async-component-loader/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mini-ghost%2Fvite-async-component-loader/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278556190,"owners_count":26006080,"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","status":"online","status_checked_at":"2025-10-06T02:00:05.630Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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-10T07:09:13.764Z","updated_at":"2025-10-06T03:52:01.663Z","avatar_url":"https://github.com/Mini-ghost.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vite-async-component-loader\n\n[![NPM version](https://img.shields.io/npm/v/vite-async-component-loader?color=34A88C\u0026label=)](https://www.npmjs.com/package/vite-async-component-loader)\n\nVite plugin that easiest way loads component files as asynchronous components.\n\n## Usage\n\nIt will automatically turn this\n\n```vue\n\u003cscript setup lang=\"ts\"\u003e\nimport LazyComponent from './Component.vue?async'\n\u003c/script\u003e\n\n\u003ctemplate\u003e\n  \u003cLazyComponent /\u003e\n\u003c/template\u003e\n```\n\ninto this\n\n```vue\n\u003cscript setup lang=\"ts\"\u003e\nimport { defineAsyncComponent } from 'vue'\n\nconst LazyComponent = defineAsyncComponent(() =\u003e import('./Component.vue'))\n\u003c/script\u003e\n\n\u003ctemplate\u003e\n  \u003cLazyComponent /\u003e\n\u003c/template\u003e\n```\n\n## Install\n\n```bash\nnpm install -D vite-async-component-loader\n```\n\n## Setup\n  \n```ts\n// vite.config.ts\nimport { defineConfig } from 'vite'\nimport Vue from '@vitejs/plugin-vue'\nimport AsyncComponentLoader from 'vite-async-component-loader'\n\nexport default defineConfig({\n  plugins: [\n    AsyncComponentLoader()\n  ]\n})\n```\n\n## Use with TypeScript\n\nWe provide a `vite-async-component-loader/client` type declaration file for TypeScript users. You can create an env.d.ts in the src directory so TypeScript picks up the type definitions:\n\n```ts\n/// \u003creference types=\"vite-async-component-loader/client\" /\u003e\n```\n\n## License\n\n[MIT License](https://github.com/Mini-ghost/vite-async-component-loader/blob/main/LICENSE) © 2023-PRESENT [Alex Liu](https://github.com/Mini-ghost)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmini-ghost%2Fvite-async-component-loader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmini-ghost%2Fvite-async-component-loader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmini-ghost%2Fvite-async-component-loader/lists"}