vite-plugin-rescript
vite-plugin-rescript copied to clipboard
support rewatch
now that rescript has switched to rewatch, this stopped working for me.
[@jihchi/vite-plugin-rescript] error: unexpected argument '-w' found
tip: to pass '-w' as a value, use '-- -w'
Usage: rescript.exe build [OPTIONS] [FOLDER]
For more information, try '--help'.
ExecaError: Command failed with exit code 2: rescript build -with-deps -w
error: unexpected argument '-w' found
tip: to pass '-w' as a value, use '-- -w'
Usage: rescript.exe build [OPTIONS] [FOLDER]
For more information, try '--help'.
Hi @tx46. What version of ReScript were you using? ReScript 12 beta?
Should be rescript watch in the latest beta.
fyi, rewatch hangs in the background (but tests work)
close timed out after 10000ms
Tests closed successfully but something prevents Vite server from exiting
You can try to identify the cause by enabling "hanging-process" reporter. See https://vitest.dev/config/#reporters
also, it should probably run build with --dev for tests i think