使用 Haxe Nodejs 目标时如何生成单独的 js 文件? 现在我有一个大的 js 文件,但我想将每个类编译为单独的 js 文件。 我找到了modular-js,但如果我认为不错的话,这不适用于nodejs(因为AMD),仅适用于前端js。
谢谢
最佳答案
你见过hxgenjs吗? ?它声称支持 Node.js:
The default configuration emits one javascript file per Haxe class, and uses CommonJS (require()) to link the dependencies. It should work out of the box with your current Node.js project, React Native project or any other CommonJS-compatible runtimes.
关于node.js - haxe node js 拆分js,而不是一个js,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46025853/