是 RequireJS AMD define() 模块中相对于 baseURL 的相对路径



例如,如果我有

define(['./path/to/Foo'], function(Foo) {})

./path/to/Foo是相对于require.config的baseUrl解析,还是相对于该模块的位置?

> 根据 http://requirejs.org/docs/api.html#modulenotes-relative-names,似乎它是相对于文件解析的,而不管baseUrl如何。

最新更新