You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed in index.js at 10 line: basepath = path.join(__dirname, directory)
My node resolves __dirname as relative path of require-context's directory. For me it's unexpected behaviour, I think when I use relative path it should be relative of file where I call requireContext function. Is it true?
The text was updated successfully, but these errors were encountered:
I noticed in index.js at 10 line:
basepath = path.join(__dirname, directory)
My node resolves __dirname as relative path of require-context's directory. For me it's unexpected behaviour, I think when I use relative path it should be relative of file where I call requireContext function. Is it true?
The text was updated successfully, but these errors were encountered: