When I create my rescript project with vite, I change insource property in rescript.json to false. Now rescript compiler put compiled files in lib/es6. So, if my project use react, the Main.res is compiled to Main.res.mjs in /lib/es6 folder. This file import the index.css file and when I start project, vite throw an error indicating that there is no index.css file in lib/es6. In fact, the css file is located in src folder. What do I do to configure vite and use correct path to css with insource disabled?
↧
Rescript Vite project with insource: false
↧