1 Star 1 Fork 0

cqb325/solid-vue-router

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
vite.config.ts 797 Bytes
一键复制 编辑 原始数据 按行查看 历史
cqb325 提交于 2023-04-24 23:12 . add solid router
/// <reference types="vitest" />
/// <reference types="vite/client" />
import { defineConfig } from 'vite';
import solidPlugin from 'vite-plugin-solid';
export default defineConfig({
plugins: [solidPlugin()],
test: {
environment: 'jsdom',
globals: true,
transformMode: {
web: [/\.[jt]sx?$/],
},
setupFiles: './setupVitest.ts',
// solid needs to be inline to work around
// a resolution issue in vitest:
deps: {
inline: [/solid-js/],
},
// if you have few tests, try commenting one
// or both out to improve performance:
threads: false,
isolate: false,
},
build: {
target: 'esnext',
polyfillDynamicImport: false,
},
resolve: {
conditions: ['development', 'browser'],
},
server: {
port: 5174
},
});
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
NodeJS
1
https://gitee.com/cqb325/solid-vue-router.git
git@gitee.com:cqb325/solid-vue-router.git
cqb325
solid-vue-router
solid-vue-router
master

搜索帮助