-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for custom transformers (similar to ts-node
)
#856
Comments
In contrast, when using Vite, it works as expected; Setup
Launch
To inspect the compiled output, look at Quokka
Though atm we have some other limitations here when we make code edits; |
Thanks for the sample repo. We had never seen
Wallaby uses TypeScript to compile the file that you start Quokka with, while Internally we are using the TypeScript compiler API and the ts.transpileModule function (which does not know about custom transforms).
We would need to add support for custom TypeScript compilers to add support for custom transformers. I will update the title to reflect this as a feature request. Unfortunately we can't commit to a timeline for the request at this point in time; it may be faster to resolve your |
ts-node
)
@smcenlly thanks for the response! Will look into the vite plugin, but with running from buffer vs file it's not so easy. |
We need to do a similar thing for both Wallaby and Quokka |
Issue description or question
Why does Quokka not respect the custom typescript compiler, which is used fine by
ts-node --esm
from the console?So far it seems errors occur even before ts-node/typescript parser/compiler is leveraged.
How do I fix this behaviour?
Is this issue related to Quokka not outputting the expected results of your code?: Yes
https://github.com/effect-ts-app/playground/blob/main/starter-traced/src/main.ts
Several globals and extension methods are at play here, which are auto provided through the extended compiler.
It is important that ts-node's
transpileOnly
is false.Compiled output (for reference)
Sample repository link
cd starter-traced
pnpm i
pnpm start
(it runsts-node --esm src/main.ts
)Output:
starter-traced
folderQuokka console output
Code editor version
Visual Studio Code v1.74.1
OS name and version
OSX Ventura 13.1
The text was updated successfully, but these errors were encountered: