LinbuduLab / esbuild-plugins

ESBuild plugins by @LinbuduLab
MIT License
113 stars 18 forks source link

[esbuild-plugin-copy] Feature request: throw when no files matched #107

Open devm33 opened 11 months ago

devm33 commented 11 months ago

Hello, currently if an input to path is incorrect the only notification is a log if verbose is enabled. It'd be great to have a setting to error in this case to highlight that something is wrong

https://github.com/LinbuduLab/esbuild-plugins/blob/e5a8479de05976bdb770228919aabc0d96b430d6/packages/esbuild-plugin-copy/src/lib/esbuild-plugin-copy.ts#L130-L139

Let me know if you'd be open to a PR for this.

Thanks for the plugin!