fix: explicitly include react/jsx-runtime in vite config
This commit is contained in:
1 parent
c28363bc9f
commit
020505b821
1 file changed
+3
@@ -6,6 +6,9 @@ export default defineConfig({
|
|||||||
plugins: [react()],
|
plugins: [react()],
|
||||||
server: {
|
server: {
|
||||||
port: 3000,
|
port: 3000,
|
||||||
|
optimizeDeps: {
|
||||||
|
include: ["react/jsx-runtime"], // JSXランタイムを明示的に解決
|
||||||
|
},
|
||||||
},
|
},
|
||||||
build: {
|
build: {
|
||||||
outDir: "dist",
|
outDir: "dist",
|
||||||
|
|||||||
Reference in new issue
Block a user