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
Note the invalid awaitawait syntax. I have also seen cases of it producing returnawait as well. This is a syntax error and fails to run.
Encountered here egoist/tsup#1091, where tsup uses sucrase with only the imports transform to compile to ESM using esbuild and then uses sucrase to transform to CJS as a way to emulate tree shaking with esbuild with CJS, which is not supported natively by it.
The text was updated successfully, but these errors were encountered:
The following code:
Compiled with:
pnpm sucrase dist -d dist2 --transforms imports
Results in:
Note the invalid
awaitawait
syntax. I have also seen cases of it producingreturnawait
as well. This is a syntax error and fails to run.Encountered here egoist/tsup#1091, where tsup uses sucrase with only the
imports
transform to compile to ESM using esbuild and then uses sucrase to transform to CJS as a way to emulate tree shaking with esbuild with CJS, which is not supported natively by it.The text was updated successfully, but these errors were encountered: