build: add react vite scaffold
This commit is contained in:
parent
abfb885851
commit
f6d6d39a7b
9 changed files with 254 additions and 8 deletions
|
|
@ -1,8 +1,15 @@
|
|||
import { sveltekit } from "@sveltejs/kit/vite";
|
||||
import { fileURLToPath } from "node:url";
|
||||
import react from "@vitejs/plugin-react";
|
||||
import { svelte } from "@sveltejs/vite-plugin-svelte";
|
||||
import { defineConfig, configDefaults } from "vitest/config";
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [sveltekit()],
|
||||
plugins: [react(), svelte()],
|
||||
resolve: {
|
||||
alias: {
|
||||
$lib: fileURLToPath(new URL("./src/lib", import.meta.url)),
|
||||
},
|
||||
},
|
||||
test: {
|
||||
exclude: [...configDefaults.exclude, "tests/e2e/**"],
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue