absolute imports in WebStorm

WebStorm can be configured to import modules using absolute paths instead of relative paths:


It works as follows:

// if the field unchecked, WebStorm imports relative
import { queries } from "../crm/queries"

// if the field checked, WebStorm imports absolute
import { queries } from "crm/queries"

Would you like to connect? Subscribe via email or RSS , or follow me on Twitter!