Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/long-woo/vite-system-ts
SytemJS 扩展,在浏览器中加载 esm 的 js/ts 文件
https://github.com/long-woo/vite-system-ts
single-spa systemjs systemjs-plugin vite
Last synced: 9 days ago
JSON representation
SytemJS 扩展,在浏览器中加载 esm 的 js/ts 文件
- Host: GitHub
- URL: https://github.com/long-woo/vite-system-ts
- Owner: long-woo
- License: mit
- Created: 2023-10-31T13:34:53.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-25T14:47:18.000Z (about 1 year ago)
- Last Synced: 2023-11-26T10:25:25.801Z (about 1 year ago)
- Topics: single-spa, systemjs, systemjs-plugin, vite
- Language: TypeScript
- Homepage:
- Size: 38.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# vite-system-ts
Vite System HRM 插件,适用于 Single-SPA 架构。
## 使用
1.安装
```sh
pnpm add @loongwoo/vite-plugin-system-ts
```2.修改 `vite.config.mts` 文件,添加如下代码:
```ts
// ...
# 导入插件
import systemTS from '@loongwoo/vite-plugin-system-ts';# 添加插件
export default defineConfig({
// 其他配置
// ...
plugins: [
// 其他插件
// ...
systemTS()
]
})
```3.在基座应用(root-config)的 `index.html`,添加引用:
```html
```