Closed eirikb closed 4 years ago
This is a TypeScript error, not a TSDX error; even if tsdx build
were to support that, it would break various other tooling in the ecosystem that relies on TS (including probably test
, lint
, tsc --noEmit
, etc). We've already had issues with incompatibilities that are very confusing for users, so I don't think we want to add to those.
In https://github.com/jaredpalmer/tsdx/issues/722#issuecomment-633120045, I mentioned why it would be better to use the transpiled JS and have a Deno build option instead (tl;dr Deno has its own tsconfig
settings and still compiles your code). I guess this is another thing Deno is incompatible with in the existing ecosystem that is limiting its own adoption.
Current Behavior
results in:
Desired Behavior
Import should just work as if this was used:
Who does this impact? Who is this for?
Users aiming to build with tsdx for npm but still support Deno.
My library doesn't use any of the Node API, or have any dependencies, so my source code would "just work" in Deno with this fix.