You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My use case here is exporting a shared library from an existing larger Deno codebase, to be consumed by number of different TypeScript apps running in both Deno and on the web — i.e. just using dnt for the first "code transform" & shimming step without any actual JS compilation.
This almost works perfectly but turns out to be a bit tricky for a couple of minor reasons:
The .ts-to-.js import path rewriting1 means that other Deno apps can't load files from the transformed source directory, as the extensions are now '.js'.
I don't need scriptModule or esModule outputs (just the transformed TypeScript source code), however dnt throws an error if both are disabled.
I'd be happy to make a PR to make both of those behaviors configurable, but mostly wanted a gut check first - is this a bad idea / does this align with dnts goals / am I misunderstanding something fundamental here?
Footnotes
edit: Looks like this is perhaps actually happening somewhere deeper than that, but — same idea. ↩
The text was updated successfully, but these errors were encountered:
Hiya—
My use case here is exporting a shared library from an existing larger Deno codebase, to be consumed by number of different TypeScript apps running in both Deno and on the web — i.e. just using dnt for the first "code transform" & shimming step without any actual JS compilation.
This almost works perfectly but turns out to be a bit tricky for a couple of minor reasons:
.ts
-to-.js
import path rewriting 1 means that other Deno apps can't load files from the transformed source directory, as the extensions are now '.js'..js
extensions are emitted foroutDir/src/*.ts
file import statements #154 - I think this is one use case where that's undesirable)I'd be happy to make a PR to make both of those behaviors configurable, but mostly wanted a gut check first - is this a bad idea / does this align with
dnt
s goals / am I misunderstanding something fundamental here?Footnotes
edit: Looks like this is perhaps actually happening somewhere deeper than that, but — same idea. ↩
The text was updated successfully, but these errors were encountered: