vite-fs:在客户端可访问Vite的Reactive FileSystem

时间:2024-06-13 07:27:37
【文件属性】:

文件名称:vite-fs:在客户端可访问Vite的Reactive FileSystem

文件大小:44KB

文件格式:ZIP

更新时间:2024-06-13 07:27:37

vite vite-plugin TypeScript

Vite FS {WIP} Vite的Reactive FileSystem在客户端可访问。 用法 例如,后缀.ref指向您要导入的路径 import data from '../data.json.ref' // the type of `data` will be `Ref` // `data` will bind to `data.json` magically on dev data . value . x = 10 // `data.json` will be updated 文件的更改也将反映给ref 。 导入.json文件时,它将自动进行解析/字符串化。 当以其他文件格式导入时,将返回具有UTF-8编码的纯Ref 。 安装 npm i -D vite-fs // vite.config.js import Vue from '@vitejs


【文件预览】:
vite-fs-master
----.eslintrc.json(40B)
----.github()
--------FUNDING.yml(14B)
--------workflows()
----src()
--------constants.ts(62B)
--------index.ts(3KB)
--------gen.ts(1KB)
----.vscode()
--------settings.json(54B)
----example()
--------index.html(271B)
--------src()
--------vite.config.ts(198B)
--------package.json(476B)
----tsconfig.json(416B)
----LICENSE(1KB)
----README.md(1KB)
----pnpm-lock.yaml(95KB)
----pnpm-workspace.yaml(22B)
----.gitignore(28B)
----.eslintignore(5B)
----package.json(1KB)

网友评论