vite-plugin-checker icon indicating copy to clipboard operation
vite-plugin-checker copied to clipboard

Passing a custom path to TypeScript

Open DiFuks opened this issue 2 years ago • 1 comments

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.

DiFuks avatar Dec 25 '23 19:12 DiFuks

I've opened a pull request: https://github.com/fi3ework/vite-plugin-checker/pull/296

DiFuks avatar Jan 18 '24 19:01 DiFuks