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
won't. While var resolve = require('path').resolve in the above will.
These inconsistencies can be fixed by refactoring these checks into common general functions that are used throughout simplifying the code and reducing the code size as well.
This would be a useful and beneficial refactoring to undertake.
The text was updated successfully, but these errors were encountered:
The static analysis in the relocate loader has become quite overly-specific in terms of how it detects static require statements etc.
As a result, there are cases that will be missed due to these overly specific checks not applying to all cases.
For example:
but:
won't. While
var resolve = require('path').resolve
in the above will.These inconsistencies can be fixed by refactoring these checks into common general functions that are used throughout simplifying the code and reducing the code size as well.
This would be a useful and beneficial refactoring to undertake.
The text was updated successfully, but these errors were encountered: