Comments (1)
Just by looking at the package quickly for the first time:
- tsm supports native ESM and ESM loader usage, esr doesn't
- esr configuration is focused on bundling versus transforming, presumably for plugin support? tsm configuration is on a per-file/extension basis, so it's equally/more configurable but is always in transform mode (better, imo, since it's how require/loader hooks are expected to be used
- tsm does a bunch of cjs->esm (and vice versa) fixes that I don't think esr does
- tsm adds extra resolution logic for handling all mts, cts, etc variants
There may be others. Or this may be somewhat inaccurate. This is after looking for 60s. Not super interested in pinning packages against each other.
Hope this helps though~
from tsm.
Related Issues (20)
- pnpm support HOT 2
- Compatibility with Yarn 2 (Berry)? HOT 9
- [Feature]: support dynamic import by default HOT 2
- [Feature]: supports custom mainField
- Bug when using tsm with chalk 5.0.0 HOT 6
- Consider adding support for sourcemaps (specifically for tracebacks)? HOT 1
- Deprecated hooks HOT 2
- Transformation does not support plugins; Not working for Relay HOT 3
- `ERR_LOADER_CHAIN_INCOMPLETE` on Node.js 18.6
- sharing: tsm succesfully chains with another --loader HOT 1
- Are directories with index.ts supported? HOT 2
- Resolve remote imports from CDNs? HOT 1
- Default exports suggested when run via `tsm` HOT 1
- Support TypeScript 4.9 `satisfies` operator HOT 4
- Doesn't handle package.json `imports` field HOT 1
- Node.js 20 support HOT 7
- Upgrade `esbuild` for const type parameters? HOT 3
- Read compilerOptions from tsconfig in cwd
- Bug: long banner string
- Is this repo still maintained? --experimental-loader warning
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tsm.