You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using Sucrase is currently impossible without errors in a ESM project. It includes types only for CJS format that do not have the same export structure.
This imports a valid transform method in ESBuild but throws errors in TypeScript:
This doesn't throw TypeScript errors but both are undefined and thus unusable:
If I look into sucrase/dist/esm/index.js, I can see that the only three exported methods are transform, getFormattedTokens, and getVersion.
If I look into sucrase/types/index.d.ts, I see getVersion, sucrase instead of transform, getFormattedTokens, and some types.
I'm using the latest for today version 3.35.0, for the record.
The text was updated successfully, but these errors were encountered:
Using Sucrase is currently impossible without errors in a ESM project. It includes types only for CJS format that do not have the same export structure.
This imports a valid transform method in ESBuild but throws errors in TypeScript:
This doesn't throw TypeScript errors but both are
undefined
and thus unusable:If I look into
sucrase/dist/esm/index.js
, I can see that the only three exported methods aretransform
,getFormattedTokens
, andgetVersion
.If I look into
sucrase/types/index.d.ts
, I seegetVersion
,sucrase
instead oftransform
,getFormattedTokens
, and some types.I'm using the latest for today version 3.35.0, for the record.
The text was updated successfully, but these errors were encountered: