LinbuduLab / esbuild-plugins

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

`to` is treated as a file if directory contains a dot #101

Open ilijapuaca opened 1 year ago

ilijapuaca commented 1 year ago

When specifying a glob for the from property, and using a folder name with a dot for to, the result is a file that's few bytes large instead of a folder containing all the glob matches.

Trivial example:

...
{
  from: './**/*',
  to: './foo.bar'
}
Mykyta-Chernenko commented 1 year ago

encounter the same issue, it essentially doesn't allow me to copy 'chart.js' library as it treats the to as a file