Open rtritto opened 2 months ago
tsx
can replace rechoir
(missing ESM support https://github.com/electron/forge/issues/3671#issuecomment-2365167266) and ts-node
dependencies.
tsx
handles the preparation and running of ESM/TypeScript modules out of the box (manual setup preparations, like rechoir.prepare
, are no longer needed). So files in ESM/TypeScript format can directly import or require.
FYI @caoxiemeihao @erickzhao @MarshallOfSound
Pre-flight checklist
Problem description
Related to
ts-node
,tsx
only loses type checking and gain other features.Source: https://github.com/privatenumber/ts-runtime-comparison
Proposed solution
Replace
ts-node
withtsx
(this will fix #3609)Alternatives considered
Add support to
tsx
Additional information
Close #3609 if
ts-node
is replaced withtsx