xstate-tools icon indicating copy to clipboard operation
xstate-tools copied to clipboard

Add Option to Not Write "tsTypes: {} as import("./index.typegen").Typegen0"

Open dylanarmstrong opened this issue 2 years ago • 2 comments

Feature Request

Currently, every time typegen runs, it will write this line. This line is invalid when compiling against node16 as it needs to be ./index.typegen.js.

Once I've already added the line, I'd like to turn off writing this line when watch triggers.

dylanarmstrong avatar Jun 17 '23 08:06 dylanarmstrong

I'm not sure what you are asking here since you also opened another issue that is highly related to this one. How this one is different from that other one?

Andarist avatar Jun 17 '23 18:06 Andarist

This is a feature request to disable writing the line entirely, and just generate the typegen file. The other issue was about the file extension missing from the import itself, which was causing issues on node16 for me.

dylanarmstrong avatar Jun 17 '23 22:06 dylanarmstrong