Closed timbicker closed 8 months ago
You need to specify typescript
@kdy1 thanks for your comment!
I didn't think of this because in the docs it states with respect to the .swcrc
file
Compilation works out of the box with SWC and does not require customization. Optionally, you can override the configuration. Here are the defaults:
So in other words, when I use the default swcrc config, I expect it to work exactly the same as when I don't have a .swcrc
file. Maybe it's a good idea to extend the documentation with a hint to this problem (to choose the right parser syntax)?
I created a small repo to reproduce the problem: here
I only use a minimal, basic setup according to the docs. The
.swcrc
is the default config from the docs.When I run my test:
I get the following error:
When I delete the
.swcrc
the test passes.Steps to reproduce:
yarn install
yarn test