We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
requirejs通过data-main来确定主入口的,用data-main来定义的主入口相当于直接require主入口调起回调。
data-main
而loader把data-main的js文件直接拆解成script的形式进行引入,会导致main函数无法执行。
The text was updated successfully, but these errors were encountered:
其实应该不是 loader 的问题,是 fis3-hook-amd 里面把 data-main 目标资源当同步依赖了,这个应该是不对的。应该是异步依赖。
Sorry, something went wrong.
仔细想了下,确实是不对,应该是异步依赖,更新下 [email protected]
[email protected]
棒!相当然的以为拆分、添加script的行为是loader的功能。
其实为什么loader和hook要分开 ·· 感觉两个功能联系的很紧 ·· 用到hook的话一定会用resource_map的吧
因为 loader 这层逻辑可以在后端更好的实现,在跟后端打通的项目里面,不需要 loader 插件。
No branches or pull requests
requirejs通过
data-main
来确定主入口的,用data-main
来定义的主入口相当于直接require主入口调起回调。而loader把
data-main
的js文件直接拆解成script的形式进行引入,会导致main函数无法执行。The text was updated successfully, but these errors were encountered: