vite-plugin-checker
vite-plugin-checker copied to clipboard
Passing a custom path to TypeScript
Is your feature request related to a problem? Please describe.
Some libraries like ts-patch or ttypescript provide the ability to write plugins for TypeScript, for example, to add custom diagnostics
Similar plugins for webpack, such as fork-ts-checker and ts-loader, allow passing a custom path to TypeScript. This feature is greatly needed in vite-plugin-checker
Describe the solution you'd like
Something like:
export default {
plugins: [checker({ typescript: { compiler: 'ts-patch/compiler' } })],
}
Describe alternatives you've considered
No response
Additional context
I'm ready to implement this feature myself and submit a pull request if you think it's a good idea
Validations
- [X] Read the docs.
- [X] Read the Contributing Guidelines.
- [X] Check that there isn't already an issue that asks for the same feature to avoid creating a duplicate.
I've opened a pull request: https://github.com/fi3ework/vite-plugin-checker/pull/296