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
vite-plugin-require-context uses regexp to find all occurences of require.context syntax, and then extract the parameters from the regexp. Therefore, I have to use comma as the split character.
Seems I have to use AST instead of regexp to handle your case, which I do not expect to happen. If you have any better ideas, feel free to tell me. :)
For your issue, I do not have a good enough solution but to remove comma in your regexp.
Versions
Steps to reproduce
vite-plugin-require-context
require.context
with the regular expression contains,
require.context(/[a-Z,]+.js/)
What is Expected?
What is actually happening?
const params = paramsSyntax.split(',');
(lib/index.js: 54)The text was updated successfully, but these errors were encountered: