Closed rxliuli closed 4 months ago
In the end, I wrote similar logic to generate type definitions, but not as a plug-in of esbuild, but as an independent function, because it can generate type definitions only once when esbuild is run multiple times
I will try and fix this asap, in the mean time I recommend a tool like tsup which generates correct definition files (and is built on top of esbuild)
I will try and fix this asap, in the mean time I recommend a tool like tsup which generates correct definition files (and is built on top of esbuild)
Since we maintain the company's internal cli program, we cannot directly use a new one, and generally expect to be superimposed on the original cli
In addition, I have handled this function by myself. When packaging multiple bundles (cjs/esm), it is unreasonable as an esbuild plugin. It seems that it needs to be generated twice. Even if incremental compilation is used, comparison is required.
I don't have a lot of time to look at this right now however I will open this again in case there is anyone out there who wants to fix this until I am available!
Reproducible steps
See error