Skip to content
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

AMD打包问题 #77

Open
choizhang opened this issue Jan 19, 2015 · 0 comments
Open

AMD打包问题 #77

choizhang opened this issue Jan 19, 2015 · 0 comments

Comments

@choizhang
Copy link

define(["../template",""],function(a){return a("xxxx/xxxx","")});

在模板不依赖其他模板的时候,deps中的第二个参数是空字符串,我在用almond打包的时候这个会导致错误,请问怎么把第二个参数为空就不要添加啊?

Yuliang-Lee added a commit to Yuliang-Lee/tmodjs that referenced this issue Sep 1, 2015
问题如aui#77 描述,在模板中没有依赖其他模板的情况下,去掉打包后的define里面多一个空字符串依赖项的问题。我在Dojo中使用AMD打包形式的模板的时候也遇到了这个错误。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant