feat: migrate to vite and hono
This commit is contained in:
@ -2,22 +2,9 @@ import { defineConfig } from "vite";
|
||||
import react from "@vitejs/plugin-react";
|
||||
|
||||
export default defineConfig({
|
||||
root: '.', // プロジェクトルートを明示
|
||||
root: ".", // プロジェクトルートを明示
|
||||
plugins: [react()],
|
||||
server: {
|
||||
port: 3000,
|
||||
optimizeDeps: {
|
||||
include: ["react/jsx-runtime"], // JSXランタイムを明示的に解決
|
||||
},
|
||||
},
|
||||
build: {
|
||||
outDir: "dist",
|
||||
rollupOptions: {
|
||||
input: "index.html",
|
||||
},
|
||||
// モジュール解決を明示
|
||||
commonjsOptions: {
|
||||
include: [],
|
||||
},
|
||||
},
|
||||
});
|
||||
|
Reference in New Issue
Block a user