Sign in

Ambar Mutha

@ambarvm.bsky.social
36 followers 97 following 61 posts

Frontend Eng at VMware github.com/ambarvm

PostsRepliesMedia
Ambar Mutha @ambarvm.bsky.social · 06/08/2025
Uno draw 25 meme.
     Add a bookmark feature
   Or
Draw
   25
0120
Ambar Mutha @ambarvm.bsky.social · 06/08/2025
You still need that file.
A screenshot of nodejs.org:
The type stripping feature is designed to be lightweight. By intentionally not supporting syntaxes that require JavaScript code generation, and by replacing inline types with whitespace, Node.js can run TypeScript code without the need for source maps.

Type stripping is compatible with most versions of TypeScript but we recommend version 5.8 or newer with the following tsconfig.json settings:
```
{
  "compilerOptions": {
     "noEmit": true, // Optional - see note below
     "target": "esnext",
     "module": "nodenext",
     "rewriteRelativeImportExtensions": true,
     "erasableSyntaxOnly": true,
     "verbatimModuleSyntax": true
  }
}
```
Use the noEmit option if you intend to only execute *.ts files, for example a build script. You won't need this flag if you intend to distribute *.js files.
100
Ambar Mutha @ambarvm.bsky.social · 17/11/2024
Sad to see es modules are slower on web 😕 Has anyone benchmarked this?
Excerpt from a web.dev article
- Transform your production code to avoid using JavaScript modules.
Bundlers can transform your JavaScript source code based on a compilation target, and the target is often specific to a given environment. V8 will apply streaming compilation to any JavaScript code that doesn't use modules, and you can configure your bundler to transform your JavaScript module code into a syntax that doesn't use JavaScript modules and their features.
110
Ambar Mutha @ambarvm.bsky.social · 09/11/2024
This is cool! Btw the stackblitz embed seems broken on Firefox mobile.
Screenshot of bsky-widget docs page.
Stackblitz embed saying unable to run embedded project. Looks like this project is being embedded without proper isolation headers.
120