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

Use the correct rawCompilerOptions when rollupTypes are true #297

Closed
3 tasks done
fightZy opened this issue Jan 11, 2024 · 0 comments
Closed
3 tasks done

Use the correct rawCompilerOptions when rollupTypes are true #297

fightZy opened this issue Jan 11, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@fightZy
Copy link

fightZy commented Jan 11, 2024

Describe the bug

image I found that the ts compiler options used by rollupDeclarationFiles directly read the original file, but my configuration inherited from another tsconfig file, resulting in unexpected errors and difficulty in locating them. image image The correct way should be to read the inherited merged file image

Currently, I need to manually add inherited configuration content to resolve the error
image
This will work normally

Reproduction

https://stackblitz.com/~/github.com/fightZy/vitejs-vite-okrmu5

Steps to reproduce

npm run build

System Info

"typescript": "^5.3.3",
"vite": "^5.0.10",
"vite-plugin-dts": "^3.7.0",

Validations

@qmhc qmhc added the bug Something isn't working label Jan 15, 2024
@qmhc qmhc closed this as completed in 0d0b255 Jan 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants