Skip to content

Is there any chance I can config entrypoints elsewhere? #58

Answered by privatenumber
MiloWang2048 asked this question in Q&A
Discussion options

You must be logged in to vote

If I understand your use-case, you want it to use .ts files in development, and .js in production? If so, that's exactly what export maps are for.

Checkout this example where I use import maps (same thing as export maps but for internal paths) to specify a development path under the development condition: https://github.com/privatenumber/get-tsconfig/blob/d1c46c04f200a8239f3e5734c42011de1ea11380/package.json#L39

To access it, I just need to pass in development to node: node -C development ./entry.js

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@MiloWang2048
Comment options

Answer selected by MiloWang2048
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants