Pattern: Dynamic module path
Issue: -
Using expressions that are resolved at runtime in import statements makes it difficult to determine the module source and hinders static analysis tools. Module paths should be static strings for better code navigation and optimization.
Example of incorrect code:
require(name);
require(`../${name}`);
Example of correct code:
require("../name");
require(`../name`);