Skip to content
public-library›Rules›JavaScript›Keep dynamic import and file paths statically analyzable

Keep dynamic import and file paths statically analyzable

When code chooses among modules or files at runtime, list each possible path literally, such as in a map of import functions, instead of computing the path from a variable.

In the full rule