Why do concatenated RequireJS AMD modules need a loader?

前端 未结 5 1425
后悔当初
后悔当初 2021-01-30 17:05

We love RequireJS and AMD during development, where we can edit a module, hit reload in our browser, and immediately see the result. But when it comes time to concatenate our mo

5条回答
  •  别那么骄傲
    2021-01-30 17:23

    I had the same need, so I created a simple AMD "compiler" for that purpose that does just that. You can get it at https://github.com/amitayh/amd-compiler

    Please note that it has many features missing, but it does the job (at least for me). Feel free to contribute to the codebase.

提交回复
热议问题