├── .eslintignore ├── .github ├── FUNDING.yml └── workflows │ └── release.yml ├── .gitignore ├── pnpm-workspace.yaml ├── example ├── src │ ├── data.json │ ├── main.ts │ ├── App.vue │ ├── shims-vue.d.ts │ └── index.css ├── vite.config.ts ├── index.html └── package.json ├── .eslintrc.json ├── .vscode └── settings.json ├── src ├── constants.ts ├── gen.ts └── index.ts ├── tsconfig.json ├── LICENSE ├── package.json ├── README.md └── pnpm-lock.yaml /.eslintignore: -------------------------------------------------------------------------------- 1 | dist 2 | -------------------------------------------------------------------------------- /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | github: antfu 2 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | .DS_Store 3 | dist 4 | -------------------------------------------------------------------------------- /pnpm-workspace.yaml: -------------------------------------------------------------------------------- 1 | packages: 2 | - example 3 | -------------------------------------------------------------------------------- /example/src/data.json: -------------------------------------------------------------------------------- 1 | { 2 | "hello": "foo" 3 | } 4 | -------------------------------------------------------------------------------- /.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "@antfu/eslint-config" 3 | } 4 | -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "typescript.tsdk": "node_modules/typescript/lib" 3 | } -------------------------------------------------------------------------------- /src/constants.ts: -------------------------------------------------------------------------------- 1 | export const SUFFIX = '.ref' 2 | export const PREFIX = 'vite-fs:' 3 | -------------------------------------------------------------------------------- /example/src/main.ts: -------------------------------------------------------------------------------- 1 | import { createApp } from 'vue' 2 | import App from './App.vue' 3 | import './index.css' 4 | 5 | createApp(App).mount('#app') 6 | -------------------------------------------------------------------------------- /example/vite.config.ts: -------------------------------------------------------------------------------- 1 | import { UserConfig } from 'vite' 2 | import Vue from '@vitejs/plugin-vue' 3 | import ViteFS from 'vite-fs' 4 | 5 | const config: UserConfig = { 6 | plugins: [ 7 | Vue(), 8 | ViteFS(), 9 | ], 10 | } 11 | 12 | export default config 13 | -------------------------------------------------------------------------------- /example/src/App.vue: -------------------------------------------------------------------------------- 1 | 5 | 6 |