Current Behavior
When a publishable package is importing something from another package, it's importing the relative path instead of importing the package name.
Eg:
import Something from '../../../../somewhere';
Expected import:
import Something from '@scope/example-2';
Expected Behavior
import Something from '@scope/example-2';
GitHub Repo
No response
Steps to Reproduce
- Create fresh nx project with ts and vite (it will automatically install latest vite-plugin-dts)
- Create 2 example publishable packages (example-1, example-2)
- In example-1, Import some types from example-2 then build.1.
Nx Report
Failure Logs
Package Manager Version
No response
Operating System
Additional Information
This was working fine with vite-plugin-dts v3.6.4.
However, the latest version seems to have a new config that was introduced that had changed some behaviour.
It might worth to include that configs in nx default template.
See this discussion:
qmhc/unplugin-dts#330 (comment)
Current Behavior
When a publishable package is importing something from another package, it's importing the relative path instead of importing the package name.
Eg:
Expected import:
Expected Behavior
GitHub Repo
No response
Steps to Reproduce
Nx Report
Failure Logs
Package Manager Version
No response
Operating System
Additional Information
This was working fine with vite-plugin-dts v3.6.4.
However, the latest version seems to have a new config that was introduced that had changed some behaviour.
It might worth to include that configs in nx default template.
See this discussion:
qmhc/unplugin-dts#330 (comment)