Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use case: Code transform step without esModule/scriptModule emitting #385

Open
dylanpyle opened this issue Mar 21, 2024 · 0 comments
Open

Comments

@dylanpyle
Copy link

dylanpyle commented Mar 21, 2024

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:

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

  1. edit: Looks like this is perhaps actually happening somewhere deeper than that, but — same idea.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant