{"id":19604610,"url":"https://github.com/long-woo/vite-system-ts","last_synced_at":"2026-05-17T08:34:11.751Z","repository":{"id":204693766,"uuid":"712442439","full_name":"long-woo/vite-system-ts","owner":"long-woo","description":"SytemJS 扩展，在浏览器中加载 esm 的 js/ts 文件","archived":false,"fork":false,"pushed_at":"2024-01-02T06:48:57.000Z","size":73,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-09T11:07:14.366Z","etag":null,"topics":["single-spa","systemjs","systemjs-plugin","vite"],"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/long-woo.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}},"created_at":"2023-10-31T13:34:53.000Z","updated_at":"2024-06-14T01:54:46.000Z","dependencies_parsed_at":"2023-11-25T10:25:01.243Z","dependency_job_id":"8fcbeeab-c71f-4c38-b594-93eff89f2a27","html_url":"https://github.com/long-woo/vite-system-ts","commit_stats":null,"previous_names":["long-woo/vite-system-ts"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/long-woo/vite-system-ts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/long-woo%2Fvite-system-ts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/long-woo%2Fvite-system-ts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/long-woo%2Fvite-system-ts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/long-woo%2Fvite-system-ts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/long-woo","download_url":"https://codeload.github.com/long-woo/vite-system-ts/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/long-woo%2Fvite-system-ts/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33131962,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-17T06:27:06.342Z","status":"ssl_error","status_checked_at":"2026-05-17T06:26:59.432Z","response_time":107,"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":["single-spa","systemjs","systemjs-plugin","vite"],"created_at":"2024-11-11T09:37:30.626Z","updated_at":"2026-05-17T08:34:11.732Z","avatar_url":"https://github.com/long-woo.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vite-system-ts\n\nVite System HRM 插件，适用于 Single-SPA 架构。\n\n## 使用\n\n1.安装\n\n```sh\npnpm add @loongwoo/vite-plugin-system-ts\n```\n\n2.修改 `vite.config.mts` 文件，添加如下代码：\n\n```ts\n// ...\n# 导入插件\nimport systemTS from '@loongwoo/vite-plugin-system-ts';\n\n# 添加插件\nexport default defineConfig({\n    // 其他配置\n    // ...\n    plugins: [\n        // 其他插件\n        // ...\n        systemTS()\n    ]\n})\n```\n\n3.在基座应用（root-config）的 `index.html`，添加引用：\n\n```html\n\u003cscript src=\"https://unpkg.com/@rollup/browser@4.9.0/dist/rollup.browser.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"/vite-system-ts.js\"\u003e\u003c/script\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flong-woo%2Fvite-system-ts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flong-woo%2Fvite-system-ts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flong-woo%2Fvite-system-ts/lists"}