typescript-go icon indicating copy to clipboard operation
typescript-go copied to clipboard

tsgo not resolving *.mts definitions

Open niclimcy opened this issue 6 months ago • 0 comments

  1. Install tailwindcss as a dependency and write a plugin
import type { PluginAPI } from "tailwindcss/plugin";
  1. "tailwindcss/plugin" resolves to plugin.d.ts instead of plugin.d.mts on tsc.

  2. type PluginAPI is now undefined as the export is defined in a different file

tsgo:

Image

tsc:

Image

niclimcy avatar Jun 01 '25 11:06 niclimcy