Closed malcolm-kee closed 5 years ago
@malcolm-kee can I suggest creating the PR so that @robwalkerco has that much less overhead should they choose to merge it? I'm happy to do so as well but figured you deserved the credit in PR form. :)
FWIW I am also affected by this, and agree with Malcom's assessment that this would likely fix the issue.
A PR would be great 😀
Created #5 with credit to @malcolm-kee. If he feels strongly about it, feel free to close or do whatever is needed to give credit. 👍 My guess is he'll be OK with getting the fix in sooner than later but don't want to speak for him
First of all, thanks for creating this plugin!
It seems like the regex rule doesn't work in Windows for scoped package.
Investigation
Upon investigation, it's because the scoped package path will be backslash in windows, e.g. package
@philpl/buble
will have the path value in Windows OS asmy\path\node_modules\@philpl\buble
, and the regex could not detect it.Suggested Solution
To fix it, the following regex rule at here can be changed from
to
Let me know if you prefer me to create a PR to add the changes.
Thanks!