Even more JSX customization
Indeed, JSX element doesn’t have a type parameter, I wonder what we can do about this here. About the single parameter of JSX components, I’m not sure to follow, do you have examples of such...
View ArticleReScript vs TypeScript Performance 2025: Clean Build Benchmark Shows...
tranquilla.nathan: I think the important metric is incremental builds, as that directly impacts developer performance. It makes some sense to me that clean builds take longer, as that is the point of...
View ArticleEven more JSX customization
About the single parameter of JSX components, I’m not sure to follow, do you have examples of such components that don’t follow this rule? How are they used? The type of a component (in rescript) is...
View ArticleEven more JSX customization
Ok I see the issue now, then I guess the ppx transformation has to be different, you’d have to provide an ad-hoc ppx I’m afraid!
View Article@rescript/runtime dependency problems
I have the same problem with SvelteKit/Vite. [plugin:vite:import-analysis] Failed to resolve import "@rescript/runtime/lib/es6/Stdlib_Option.js" from "src/lib/some/file". Does the file exist? I have...
View Article@rescript/runtime dependency problems
With some hackery you can keep using hoisted: in your vite.config.js add: // Resolve @rescript/runtime using Bun's module resolution const rootPath = path.resolve(import.meta.dirname, "../.."); //...
View ArticleZed and ReScript Language Server Woes
Not exactly where I should report this as I’m not 100% it’s an issue with the LSP or the editor integration or what. I’m running ReScript 12.0.1 and version 1.70.0 of the language server. When I open...
View Article@rescript/runtime dependency problems
Hmm, interesting. But at this point just adding @rescript/runtime as a dependency seems like a more straightforward solution (and, from my understanding of isolated installs it seems to be the...
View ArticleZed and ReScript Language Server Woes
jardonamron: it works fine in VSCode Do you have autosave there as well? Oh and do you have any configuration in zed?
View ArticleZed and ReScript Language Server Woes
I ended up opening an issue on the rescript-zed project and we’ve at least got a workaround now.
View Article@rescript/runtime dependency problems
I think the issue is with how pnpm resolves dependencies in a monorepo with isolated installs. My use case: Root node_modules/.pnpm: contains rescript contains @rescript/runtime some/app package.json:...
View Article@rescript/runtime dependency problems
Yup, this sounds about right. It is only @rescript/runtime code that will end up in your bundle so it does make sense to add that to “dependencies” and the compiler to “devDependencies”. This does...
View Article@rescript/runtime dependency problems
wouldn’t this be sort of trivial to mitigate by having the compiler emit a warning if the two packages exist in package.json and are of different versions?
View ArticleHelix Editor integration
Hello, Does anyone have any experience integrating rescript language server and the helix editor? It works for the syntax but I am having a hard time figure it out the diagnostics, hints and...
View Article`rescript build` panics when two modules have the same name
I created by accident a copy of the file and rescript build went in to panic This is enough to reproduce: $ tree src src ├── a │ └── Test.res └── b └── Test.res note: run with `RUST_BACKTRACE=1`...
View Article`rescript build` panics when two modules have the same name
I believe not, please file an issue.
View ArticleHelix Editor integration
Hi, I don’t you Helix but it might be interesting to mention what you are trying so far. How are you wiring up https://www.npmjs.com/package/@rescript/language-server for example?
View ArticleWhat keep you guys using Rescript?
Hi, I am in the process of rewriting a F# + Fable + Feliz + Preact app with ReScript. ReScript’s onboarding was not frictionless. I started with create-rescript-app. Using pnpm, I first encountered a...
View ArticleWhat keep you guys using Rescript?
You’re approaching this from a different background, which naturally comes with expectations about how certain things should work. Using pnpm There’s a wide range of package manager setups in the JS...
View ArticleWhat keep you guys using Rescript?
Don’t get me wrong, for now at least, my ReScript first impression is quite positive. Otherwise I would not rewrite my app from F# to ReScript. As you said, maybe the docs could be improved.
View Article