Open mrozekma opened 5 years ago
If the glob pattern matches no filenames, the loader returns an empty string. It should probably return an empty array, so that code like this:
import foo from './*.bar'; console.log(foo);
Doesn't result in "foo is not defined"
If the glob pattern matches no filenames, the loader returns an empty string. It should probably return an empty array, so that code like this:
Doesn't result in "foo is not defined"