ES6 and AMD require paths are raw, you can make them mean whatever you want, but by default mean baseUrl+path
. In npm the paths are relative to the file calling require
if the path starts with a directory separater, if there is no separator it looks in node_modules
. For example:
// looks in node_modules
// we'll call this a "vendor require"
var handlebars = require('handlebars');
// looks relative to this file