说:
ozma1.9支持CommonJS了,可以在同一个项目里混用CJS和AMD语法的文件,而且在CJS模块内部能用AMD语法来实现动态依赖,比如这个例子里有3个CJS模块和3个AMD模块:https://douc.cc/0JqVP4 编译后的效果:https://douc.cc/0YtV2o
转发日记
【别光顾着玩Swift】ES5,ES6,ES7/ES8特性和支持
早上边看球边写笔记,结果比赛太无趣以至于整理出了一篇比较全的文档,最近提交的mo/lang 1.7包含了其中几乎全部能实现的shim,包括promise和Map/Set/WeakMap/WeakSet,可以单独依赖,跟之前的一些shim库相比更简单清晰实用~
分享网址
The Web’s Declarative, Composable Future...
The way that languages in the web platform evolve are in direct response to the pain caused by complexity. Pain is generally a bad thing and so it’s with better patterns and platform primitives tha...
强烈推荐addyosmani这篇『综述』,非常有助于理解DarkDOM和CardKit(还可以结合wycats那篇,见评论),关键词都非常精准:declarative renaissance, isolation, composable, interoperable
分享网址
Broccoli: First Beta Release
Broccoliis a new build tool. It’s comparable to the Rails asset pipeline in scope, though it runs on Node and is backend-agnostic.After a long slew of 0.0.x alpha releases, I just pushed out the ...
Broccoli的trees+临时文件、Gulp讨论中的stream+虚拟文件系统,都是为了构建工具的chainable问题,而Grunt只做好task runner的角色,把chainable留给最终用户(并非插件开发者)去操心,这个故事告诉我们… PS:ozma属于n:n编译
分享网址
Pass empty dependency array for AMD
Openjrburkewants to merge 1 commit intoForbesLindesay:masterfromjrburke:umd-arraydeps
似乎目前所有用Browerify处理CommonJS风格模块的项目都受到这个问题影响,会触发对模块内代码的依赖分析(require.js和oz.js都有这种机制),包括React,而React正好又包含会影响依赖分析的注释,我想说substack同学选择依赖的时候太随便了……