feat: fix frontend build error by updating index.html and vite.config.ts
This commit is contained in:
		@@ -8,6 +8,6 @@
 | 
				
			|||||||
  </head>
 | 
					  </head>
 | 
				
			||||||
  <body>
 | 
					  <body>
 | 
				
			||||||
    <div id="root"></div>
 | 
					    <div id="root"></div>
 | 
				
			||||||
    <script type="module" src="/main.js" defer></script>
 | 
					    <script type="module" src="./src/main.tsx" defer></script>
 | 
				
			||||||
  </body>
 | 
					  </body>
 | 
				
			||||||
</html>
 | 
					</html>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -12,5 +12,9 @@ export default defineConfig({
 | 
				
			|||||||
    rollupOptions: {
 | 
					    rollupOptions: {
 | 
				
			||||||
      input: "index.html",
 | 
					      input: "index.html",
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
 | 
					    // モジュール解決を明示
 | 
				
			||||||
 | 
					    commonjsOptions: {
 | 
				
			||||||
 | 
					      include: [],
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
});
 | 
					});
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user