mirror of
https://github.com/nicotsx/zerobyte.git
synced 2026-04-18 13:57:52 -04:00
* chore(deps-dev): bump @vitejs/plugin-react from 5.1.4 to 6.0.1 Bumps [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/tree/HEAD/packages/plugin-react) from 5.1.4 to 6.0.1. - [Release notes](https://github.com/vitejs/vite-plugin-react/releases) - [Changelog](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/CHANGELOG.md) - [Commits](https://github.com/vitejs/vite-plugin-react/commits/plugin-react@6.0.1/packages/plugin-react) --- updated-dependencies: - dependency-name: "@vitejs/plugin-react" dependency-version: 6.0.1 dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * chore: move react-compiler to rolldown babel plugin * chore(vite): use native tsconfig path resolution * chore: add @babel/core types dev dep --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Nicolas Meienberger <github@thisprops.com>
42 lines
850 B
TypeScript
42 lines
850 B
TypeScript
import tailwindcss from "@tailwindcss/vite";
|
|
import { defineConfig } from "vite";
|
|
import { tanstackStart } from "@tanstack/react-start/plugin/vite";
|
|
import { nitro } from "nitro/vite";
|
|
import viteReact, { reactCompilerPreset } from "@vitejs/plugin-react";
|
|
import babel from "@rolldown/plugin-babel";
|
|
|
|
export default defineConfig({
|
|
plugins: [
|
|
tanstackStart({
|
|
srcDirectory: "app",
|
|
router: {
|
|
routesDirectory: "routes",
|
|
},
|
|
importProtection: {
|
|
behavior: "error",
|
|
},
|
|
}),
|
|
nitro({
|
|
preset: "bun",
|
|
plugins: ["./app/server/plugins/bootstrap.ts"],
|
|
}),
|
|
viteReact(),
|
|
babel({ presets: [reactCompilerPreset()] }),
|
|
tailwindcss(),
|
|
],
|
|
resolve: {
|
|
tsconfigPaths: true,
|
|
},
|
|
build: {
|
|
outDir: "dist",
|
|
sourcemap: false,
|
|
rollupOptions: {
|
|
external: ["bun"],
|
|
},
|
|
},
|
|
server: {
|
|
host: "0.0.0.0",
|
|
port: 3000,
|
|
},
|
|
});
|