-
-
Notifications
You must be signed in to change notification settings - Fork 622
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 tsimp TS loader #4025
Comments
Here docs - https://github.com/tapjs/tsimp?tab=readme-ov-file#usage, supported ESM Close due #3905 Feel free to feedback |
@alexander-akait Unfortunately, this does not work.
I have also tried adding |
@wojtekmaj strange, maybe you can create a reproducible repo? Because it works locally for me, also please check your version |
There is absolutely nothing unusual about my setup. Here's my minimal repro repo: However, I believe the key is that you may have one of the listed packages ('ts-node/register', 'sucrase/register/ts', '@babel/register', 'esbuild-register/dist/node', '@swc/register') installed alongside tsimp, causing the error not to appear. |
I see the problem, right now you can use:
Anyway you still have some problems with ts/babel configuration. Using Feel free to feedback |
Anyway in future we will improve it and you will need less extra code to run it, we are waiting |
This worked for me! Thanks! |
Is your feature request related to a problem? Please describe.
I would like to replace ts-node with tsimp, but when I try to replace
with
I'm met with the following error:
Describe the solution you'd like
Add tsimp to the list of allowed TS module loaders
Describe alternatives you've considered
🤷♂️
The text was updated successfully, but these errors were encountered: