Is there any good way to load a module elegantly (where the IDE can suggest or go into the file) using dynamic path or start from the root directory to import a module?
import * as Q from 'q'; import * as loopback from 'loopback'; import datasources from '../../../datasources.json'; import app from '../../../server'; import {ApiError, ValidationError, DatabaseError} from'../../../utils/error-handlers';
node_modulesto your preferred default load location? Use a flatter directory structure?import app from '/server'? Your module loader is responsible for resolving those strings to modules. Check its docs about support of paths, and maybe file a feature request.