我在主文件中定义了requirejs的配置,baseUrl路径和从那一点加载的每个相对路径。
但子模块怎么样?我想独立,不要使用那个baseUrl!
该怎么办?
文件夹
- node_modules
- independent module
- A.js // from here I want to load B.js like this: ".B", but it would load "root/B.js" which fails. I need to be independent from my app config...
- B.js
- app
- index.js (configs set the baseUrl to "../", which is the root of this app)
感谢