Support multi-entry imports #353
Labels
solution: duplicate
This issue or pull request already exists
topic: multi-entry
Related to multi-entry support
Milestone
Current Behavior
For ESM, TSDX bundles all code into one file(dist/xxx.esm.js)
Desired Behavior
See this directory hierarchy, it is desired that TSDX can generate dist like this:
So I can import them using:
It is useful to avoid the hell of naming things when I have many features in one NPM package. I can use the directories as namespaces.
Suggested Solution
Add an option in
TsdxOptions
to active this feature, default to false.Who does this impact? Who is this for?
For those who got a headache in naming things.
Describe alternatives you've considered
Think about
tsc
, it generates code files right beside the source files. Just want the same behavior.Additional context
The text was updated successfully, but these errors were encountered: