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
a.xtpl
{{include('./b')}}{{x}}
a.js
function(){ params2.push('./b-xtpl'); config1.params = params2; if(moduleWrap){ require('./b-xtpl'); } }
function(){ var submodule; if(moduleWrap){ submodule = require('./b-xtpl'); } params2.push(submodule && submodule.TPL_NAME||'./b-xtpl'); config1.params = params2; }
The text was updated successfully, but these errors were encountered:
submodule.name 在什么情况下会不存在?
Sorry, something went wrong.
@maxbbn 是 TPL_NAME 是 https://github.com/kissyteam/gulp-xtemplate 放的
1.4.1 构建的代码里面没有这个变量, 是 之后版本里面加的吗? 哪里能看到编译后的代码
嗯 1.4.x 没.... 所以 new 的时候如果依赖子模块 要指定 name ...
new X(fn,{name:'xx/yy'});
目前主干代码例子:https://github.com/kissyteam/kissy/blob/master/build/combobox-debug.js
052de55
No branches or pull requests
current compiled code
a.xtpl
a.js
optimized compiled code
a.xtpl
a.js
The text was updated successfully, but these errors were encountered: