You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// RequireJS && SeaJSif(typeofdefine==='function'){define(function(){returntemplate;});}// NodeJSif(typeofexports!=='undefined'){module.exports=template;}// in no define env or browserif(typeofwindow=='object'&&typeofdefine!='function'){this.template=template;}
求大神修复
The text was updated successfully, but these errors were encountered:
这个文件——yog2-kernel/plugins/isomorphic/index.js中有一行(第12行)代码这么写的:
这个挂载在global上的define,项目的任何地方都可以访问,当我在nodejs中引入一个umd,结果就跪了
在nodejs,程序直接命中第一个判断,使用了define 导出对象template,实际上导出的是module.exports = {}(默认)
于是我就只能:
求大神修复
The text was updated successfully, but these errors were encountered: