rollup-plugin-esbuild icon indicating copy to clipboard operation
rollup-plugin-esbuild copied to clipboard

Insufficient parameters supported by `esbuild.transform`

Open asins opened this issue 4 years ago • 1 comments

For example, now I want to use the legalComments parameter to modify the support for comments, but rollup-plugin-esbuild does not support it. I hope to support all the parameters of esbuild by default.

asins avatar May 07 '21 05:05 asins

Looking at the code, legalComments does seem to be passed to esbuild:

https://github.com/egoist/rollup-plugin-esbuild/blob/875aed8d6e08d5573c0fa4d0d9402850cf3ac140/src/index.ts#L173-L184

Comments with @preserve are being removed for me too, but IDK if it's a problem with this library.

jacksteamdev avatar Feb 02 '22 19:02 jacksteamdev

Supported in the latest version.

sxzz avatar Sep 20 '23 15:09 sxzz