Module names in RequireJS, unless explicitly pathed, are resolved relative to the base URL.
For example, if a script from http://example.com/foo/bar
tries to load cat
, the resolved URL will be http://example.com/cat
.
You can resolve this by specifying a relative module name, like ./doc-header
. TypeScript will also respect these relative paths.