Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Non-matching globs don't generate any code #15

Open
mrozekma opened this issue May 26, 2019 · 0 comments
Open

Non-matching globs don't generate any code #15

mrozekma opened this issue May 26, 2019 · 0 comments

Comments

@mrozekma
Copy link

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"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant