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

Import more modules #488

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft

Import more modules #488

wants to merge 2 commits into from

Conversation

oyvindberg
Copy link
Collaborator

So far ST has looked at package.json to determine a subset of typings to include. Going forward all files will be translated. This solves #463

There are loads of details for computing shorter module names. These will be solved similar to how exports was solved in #486, by injecting "proxy modules" into the AST.

Note that some libraries ship typings for multiple hierarchies, typically in folders named src, es, es6 and so on. we'll now get all those duplicates as well.

@oyvindberg oyvindberg changed the base branch from master to predictable-module-names October 13, 2022 14:14
@oyvindberg oyvindberg marked this pull request as draft October 13, 2022 14:14
add `stShortModuleNames` (for sbt plugin) and `--shortModuleNames` for CLI which reverts to old behaviour.

Note that the old behaviour is deprecated
So far ST has looked at package.json to determine a subset of typings to include. Going forward *all* files will be translated. This solves #463

There are loads of details for computing shorter module names. These will be solved similar to how `exports` was solved in #486, by injecting "proxy modules" into the AST.

Note that some libraries ship typings for multiple hierarchies, typically in folders named `src`, `es`, `es6` and so on. we'll now get all those duplicates as well.
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

Successfully merging this pull request may close these issues.

1 participant