tmodjs icon indicating copy to clipboard operation
tmodjs copied to clipboard

跪求能否先让type:default 不要再加"undefined" != typeof exports ? module.exports = b : this.template = b的判断

Open pulo opened this issue 10 years ago • 5 comments

我都声明了是default了 为什么还要判断EXPORTS啊~~~, 或者你新增个类型normal也行,反正让我即使使用了[X]MD也不要生成[X]MD的格式 因为我没有用AMD CMD 我用的是其他的MD,~~也有EXPORTS~~~

pulo avatar Jul 30 '14 02:07 pulo

求这个 MD 的格式规范,我新增一个类型

aui avatar Jul 30 '14 02:07 aui

我觉得不是新增一个类型能解决的问题,因为这个MD是我们公司自己定的~~~,其他公司或许也会有自己的MD 其实 我觉得只要能新增一个非MD的类型即可,然后后面不要再判断exports ,强制讲template方法暴露给window

pulo avatar Jul 31 '14 01:07 pulo

OK,我添加一个命名空间的设置

aui avatar Jul 31 '14 03:07 aui

请使用 npm 更新 tmodjs,最新版本[email protected]已支持你的需求。 请设置 tmodjs 项目配置type: "global"

aui avatar Jul 31 '14 04:07 aui

非常感谢!!!

pulo avatar Aug 05 '14 06:08 pulo