*.d.ts files have in-line imports instead of top-level imports #276
Labels
scope: upstream
Issue in upstream dependency
solution: outdated
This is not up-to-date with the current version
solution: tsc behavior
This is tsc's behavior as well, so this is not a bug with this plugin
topic: TS version
Related to a change in a TS version
What happens and why it is wrong
When I compile component with imports from other libs it imports types directly in
*.d.ts
files. E.g.toast.tsx
is compiled into
toast.d.ts
Thus, it generates NOT pretty suggestions in vscode. How do I make it import types only once, so that it will show correct suggestions?
Environment
I think it doesn't relate
Versions
rollup.config.js
`rollup.config.js`:
tsconfig.json
`tsconfig.json`:
package.json
`package.json`:
plugin output with verbosity 3
plugin output with verbosity 3:
The text was updated successfully, but these errors were encountered: