-
Notifications
You must be signed in to change notification settings - Fork 228
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
relative2absolute
的问题
#58
Comments
baseId预期是一个module id而不是url esl是不支持require([])一个url的,这不是标准amd的部分。在requirejs里是支持的,这是一个suger。 在开发应用的时候以模块的视角去考虑整体结构会更自然些 |
按照规范来说,全局的 |
@errorrik 所以当需要加载一个外站模块,合适的做法是先通过 config 配置 |
是的,标准做法是这样的。如果是非amd模块,需要配个shim |
👌 感谢 erik 大神回复~ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
RT,
relative2absolute
在baseId
值为形如"http://..."
的字符串时,返回结果中的//
会只剩一个,即:这个表现为在全局环境以完整 url 的形式加载匿名模块时,如果该模块有相对路径的依赖,则该依赖的路径会计算错误。
主要原因是在这里对 seg 对了非空的判断,不知道这是出于什么考虑。
The text was updated successfully, but these errors were encountered: