enhanced-resolve: What is the expected fallback behavior when restrictions is combined with multiple modules entries?
#21080
|
I have a project with this resolver configuration: modules: ['node_modules', '/build/node_modules'],
restrictions: new RegExp('^/build/node_modules')The intent is to enforce a "jail" where modules will only ever be resolved from This seems to work as expected except in the case where an import resolves to a package that has an Desired BehaviorIf we have the
And are resolving for an
Actual Behavior
(Sorry for a very wordy question, but this is a complicated scenario to describe! I'm wondering if this looks like a bug, in which case I'll file it as such. It's hard to know from context of issues like #9165, since they didn't explicitly contemplate this |
Replies: 1 comment 4 replies
|
Hm, looks like due webpack/enhanced-resolve#399, but sounds like a small bug, can you try locally - webpack/enhanced-resolve#600? |
Hm, looks like due webpack/enhanced-resolve#399, but sounds like a small bug, can you try locally - webpack/enhanced-resolve#600?