tsc-esm-fix
TypeScript

tsc-esm-fix | TypeScript | |
---|---|---|
2 | 1,400 | |
75 | 102,145 | |
- | 0.5% | |
7.8 | 9.8 | |
6 days ago | 2 days ago | |
TypeScript | TypeScript | |
MIT License | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
tsc-esm-fix
-
TypeScript is now officially 10 years old
Probably because it compiles them to a pre-standard ES5-compatible implementation based on good ol' `Foo.prototype`. And since they've already handled them one way, they can't become spec-compliant without breaking backwards compatibility.
The other place where this shines through particularly egregiously is the support of ESM static import/export. Everybody's build tools been compiling that back down to CJS so hard that Node.js 16+ introduced intentional incompatibilities between CJS and ESM modes just to get people to finally switch to the standards-compliant module system. So you end up in a situation where the library is written in TypeScript with ESM syntax but the only available browser build is a CJS blob which completely defeats the main touted benefit of static imports/exports, namely dead code elimination...
So you decide what the hell, let's switch TSC to ESM and moduleResolution node16, and end up having to use something like https://github.com/antongolub/tsc-esm-fix because the only allowed fix for TSC doing the wrong thing is at the completely wrong level - https://www.typescriptlang.org/docs/handbook/esm-node.html - if you don't see what's wrong with that, you're one of today's lucky 10000...
- TS and ts-jest meet “type”: “module”
TypeScript
-
Beginner's Guide: How to set up PostgreSQL within Playwright for Test Automation
Below is an example of how you can integrate PostgreSQL into your Playwright tests in TypeScript while supporting multiple environments (e.g., local, beta, prod). We'll use the following libraries:
-
A Beginner's Guide to Frontend Development
Typescript Official Website
-
TypeScript VS vorarbeiter - a user suggested alternative
2 projects | 2 Feb 2025
-
Bluesky OAuth2 Client, with Vanilla JavaScript
The problem here is that there are several implementations of "how-to-do" this integration BUT with modern frameworks. The guys from @atproto.com have implemented a wonderful pack in TypeScript and some guys has some solutions with NodeJS.
-
TypeScript enums: use cases and alternatives
> Enums is going to make your TypeScript code not work in a future where TypeScript code can be run with Node.js
Apparently they're planning on adding a tsconfig option to disallow these Node-incompatible features as well [1].
Using this limited subset of TS also allows your code to compile with Bloomberg's ts-blank-space, which literally just replaces type declarations with blank spaces [2].
[1] https://github.com/microsoft/TypeScript/issues/59601
[2] https://bloomberg.github.io/ts-blank-space/
-
Programming Language Trends for 2025
The use of TypeScript in web development is being adopted by more companies, especially for large-scale projects, where its benefits are most noticeable. TypeScript improves code quality by offering static type checking, helping developers catch errors early and creating a more maintainable structure in the long term. Additionally, popular web frameworks such as React, Angular, and Vue.js are increasingly supporting TypeScript, making it a preferred choice for developers. In mobile development, Swift and Kotlin are the dominant languages, playing key roles in optimizing security and performance for iOS and Android platforms, respectively.
-
TypeScript: Getting Started With TSConfig Options
According to the documentation for TypeScript, “TypeScript is a strongly typed programming language that builds on JavaScript.”[1] The TypeScript language adds type syntax to help you catch errors early during development and keeps safeguards up while your development team grows as a project scales. TypeScript allows you to define the datatypes for variables and interfaces for objects. TypeScript uses these definitions to check your code for errors as it compiles and informs you when you are not following the definitions you set beforehand.
-
React + AI Stack for 2025
Look, I know some of you still resist TypeScript, but it's like peanut butter and jelly with React at this point. It catches mistakes early, makes refactoring less painful, supercharges your IDE's autocomplete, and gives new devs on your team built-in docs. Plus, all those fancy AI coding assistants? They work way better with strongly-typed code.
- Build and Deploy a Monorepo WebSocket web application with Turbo, Express, and Vite on Render Using Docker
-
7 Practical Tips to Minimize Your JavaScript Bundle Size
There are countless blogs and podcasts, but I find the best “newsletters” are new .d.ts files in the TypeScript repository. Just open, for example, es2024.collection.d.ts and enjoy 🙂
What are some alternatives?
ts-jest - A Jest transformer with source map support that lets you use Jest to test projects written in TypeScript.
Tailwind CSS - A utility-first CSS framework for rapid UI development.
tsx - ⚡️ TypeScript Execute | The easiest way to run TypeScript in Node.js
zod - TypeScript-first schema validation with static type inference
ts2esm - Transforms CommonJS projects into ESM.
bolt.new - Prompt, run, edit, and deploy full-stack web applications
node-win32-api - win32 api
rescript - ReScript is a robustly typed language that compiles to efficient and human-readable JavaScript.
react-pair - 🖇️ Util to help with the paired hook pattern
zx - A tool for writing better scripts
proposal-type-annotations - ECMAScript proposal for type syntax that is erased - Stage 1
Yup - Dead simple Object schema validation
