Rescript runtime error with commonjs
For me personally, I’ve been pursuing converting over to esm, but this does make updating to rescript 12 harder. The other thing is that if you look at my rescript.json in the OP I didn’t specify...
View ArticleRescript runtime error with commonjs
Maybe something can be tweaked in here to support both commonjs and esm. Feel free to explore.
View ArticleHelp with the VSCode formatter?
Oooh! First it told me that the ReScript formatter wasn’t installed. Then it gave me an option to install it. I click “install” and then I got a message saying the ReScript formatter crashed 5 times...
View ArticleHelp with the VSCode formatter?
enoonan: The ReScript Language Server server crashed 5 times in the last 3 minutes. The server will not be restarted. See the output for more information. This seems to me your real problem. I would...
View ArticleHelp with the VSCode formatter?
Yeah I’m not sure at what point I lost autocomplete. It had been working, but I messed around quite a bit in the settings. In any case, I just nuked my entire VSCode install and reinstalled it and now...
View ArticleEven more JSX customization
While experimenting with mithriljs, I was curious if I could use it in rescript (with jsx support) as well. So I started a new project, added a JSX module and implemented all necessary types and...
View ArticleReScript vs TypeScript Performance 2025: Clean Build Benchmark Shows...
I am afraid this benchmark does not really reflect real world scenarios. ReScript creates a lot of intermediary files for every .res file. There are ideas around this like putting more of that into a...
View ArticleReScript vs TypeScript Performance 2025: Clean Build Benchmark Shows...
tranquilla.nathan: While I hope to promote ReScript Thanks for doing this btw! Much appreciated!
View ArticlePpx_spice v0.3.0 released - ReScript v12 support
This couldn’t have come at a better time, thank you!
View ArticlePpx_spice v0.3.0 released - ReScript v12 support
Quick question before I file an issue! Is Spice supposed to work with generic types? e.g. @spice type t<'a> = { prop: 'a } It seems to be broken for me, and I can’t find any examples like this...
View ArticlePpx_spice v0.3.0 released - ReScript v12 support
Well I changed my mind and filed an issue anyway Really appreciate your time and input. Happy to work with you on this one, but right now I’m totally baffled how ReScript gets the error message SO...
View ArticleReScript v12 js-post-build confusion
I’m trying to upgrade our massive production codebase to v12, so please expect several new topics I just got this in the compiler terminal output: The field ‘js-post-build’ found in the package config...
View ArticleReScript v12 js-post-build confusion
IIRC we haven’t said we aren’t going to have it. I just think it hasn’t been built yet for Rewatch.
View ArticleReScript v12 js-post-build confusion
Ah ok, that’s a relief. Thanks. The docs/blog read like the new build system is “done”. I’ll try using the legacy build system for now.
View ArticleReScript v12 js-post-build confusion
See https://github.com/rescript-lang/rescript/blob/master/rewatch/CompilerConfigurationSpec.md#rescript-build-configuration Most of it is there, could you give an example of what kind of command you...
View ArticleReScript v12 js-post-build confusion
Of course, this is our config in rescript.json: "js-post-build": { "cmd": "./tools/gen.sh" }, And the gen.sh file expects a single argument to be passed to it which is the path to the JS file that was...
View ArticleReScript v12 js-post-build confusion
I’ve run into a similar problem with that path resolution and try_package_path when testing ppx updates with relative paths in “ppx-flags”: "ppx-flags": ["../ppx"] try_package_path: upward traversal...
View ArticleReScript v12 js-post-build confusion
This has nothing to do with “ppx-flags”, “js-post-build” is simply not there. Please create a GitHub issue for whatever problem you have with ppx-flag.
View Article@unwrap not working on normal types
Is there a way to DRY @variant declarations for external functions if I want to use it in several places?
View Article