-
Notifications
You must be signed in to change notification settings - Fork 15
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
Depth level support. #8
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have a big project where i need to import some files with some extensions. Something like that:
So, when i do
require.ensure('./src', true, /ext$/)
it gets the right file. The problem is that it becomes too slow because this require is maping all folders structures.However you can set false if you dont want to look in subdirectories, but i need to search inside level 1 subdirectories. ¿Maybe could be 2nd parameter a number indicating depth instead of a boolean?. 0 stills being false and other numbers still being true.
The text was updated successfully, but these errors were encountered: