Closed ad1992 closed 1 year ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Updated (UTC) |
---|---|---|---|
mermaid-to-excalidraw | ✅ Ready (Inspect) | Visit Preview | Sep 21, 2023 6:32am |
The fact TS vehemently rejects compiling ./file
(or ./file.ts
) -> ./file.js
and instead forces us to write .js
when importing TS files is nuts.
Since we are using ESM build so when compiling to
js
usingtsc
the imports don't have.js
extension due to which it fails to resolve in host and throws error (The below error is when integrating in @excalidraw/excalidraw docs)Hence I am upgrading typescript version and using
nodeNext
as module resolution which makes sure all imports have.js
extension as that's recommended by typescript team - https://github.com/microsoft/TypeScript/issues/42151 and https://github.com/microsoft/TypeScript/issues/16577To test install the preview version