admin管理员组文章数量:1384278
I would like to use Google Closure Compiler to build a set of CommonJS modules. Can this be done out of the box? Alternatively, is there some simple transformation that can be done to the CommonJS modules to allow them to be consumed by Closure Compiler?
I would like to use Google Closure Compiler to build a set of CommonJS modules. Can this be done out of the box? Alternatively, is there some simple transformation that can be done to the CommonJS modules to allow them to be consumed by Closure Compiler?
Share Improve this question asked Jul 10, 2012 at 22:13 theazureshadowtheazureshadow 10.1k6 gold badges35 silver badges49 bronze badges1 Answer
Reset to default 6Support has been added to Closure Compiler to make it is easier to work with Common JS and AMD/require.js modules using the following piler flags:
--transform_amd_modules
--process_mon_js_modules
--mon_js_entry_module
--mon_js_module_path_prefix
See Experimental support for Common JS and AMD/require.js modules in Closure Compiler
本文标签: javascriptCan Closure Compiler build CommonJS modulesStack Overflow
版权声明:本文标题:javascript - Can Closure Compiler build CommonJS modules - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744465756a2607502.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论