Hi,
I started to use this to alias 'react' to 'node_modules/preact-compat' but that has the side effect of matching 'react-router' to 'node_modules/preact-compat/-router'
Line 25 matches if the module starts with the alias or not request.indexOf(alias) === 0 an exact match fixes my problem as in request === alias
Or is it intentional that it matches partials too?
Cheers