Suggestion: an integration with esbuild to replace `ts-node/register` and `@babel/register`
See original GitHub issueSince one of the main aim of uvu is fast, use esbuild to replace babel
or tsc
would make unit tests with uvu
much faster for end users.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:8
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Node: Support esbuild/register hook? #260 - GitHub
Hey! Are you interested in offering an esbuild/register hook, or should I plan on creating my own package for this?
Read more >Plugins - esbuild
This property lets you replace this plugin's name with another name for this path resolution operation. It's useful for proxying another plugin through...
Read more >webpack or esbuild: Why not both? - LogRocket Blog
There will be two: one for TypeScript/JavaScript application code (we want to replace this) and one for nonapplication JavaScript code. It's not ...
Read more >Using esbuild As Your New Bundler
Thoughts regarding esbuild as replacement of existing bundlers & babel for developing packages.
Read more >esbuild-plugin-replace - npm
Replace strings in files while bundling. Latest version: 1.3.0, last published: 2 months ago. Start using esbuild-plugin-replace in your ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Just want to report that I was able to get this working fairly painlessly with Estrella, like so:
Usage:
Watch:
Easy peasy! Obviously, any of the details of this may be changed. It does write to the filesystem, so if that’s something you’re really trying to avoid you’ll want something like
esbuild-register
or ts-eager. But wanted to share my solution in case it helps.It seems
esbuild-register
works ok, at least with minimal examples I tried it with. Made an example PR in #119.