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
In addition to the Typescript compilers currently supported. I would like a way to use node's built in --experimental-strip-types. My tests currently pass from the command line with "node --experimental-strip-types --test **/*.test.ts"
Wallaby diagnostics report
The text was updated successfully, but these errors were encountered:
Due to some technical complexity in adding support for --experimental-strip-types, we do not have plans to add support for node's built-in type stripping while it is an experimental feature.
Having said that, Wallaby supports type stripping using swc, which is what node.js is using under the covers. Node uses amaro, which is a wrapper around @swc/wasm-typescript. You can run Wallaby using the swc by installing @swc-node/register dependency (see our docs).
We have tested swc in the past, and found find that running with swc natively (as happens with @swc-node/register) was about 10x faster than when using the wasm version (which is what Node is using). Unfortunately, without adding support for --experimental-strip-types, we can't show / verify this.
Issue description or question
In addition to the Typescript compilers currently supported. I would like a way to use node's built in --experimental-strip-types. My tests currently pass from the command line with "node --experimental-strip-types --test **/*.test.ts"
Wallaby diagnostics report
The text was updated successfully, but these errors were encountered: