Closed millermedeiros closed 12 years ago
It would be a welcomed feature, but I have no immediate plans to implement AMD support. Feel free to build it in and make a Pull Request, it would be greatly appreciated.
cool, I should do it in a few days..
just realized one issue with the UMD approach... since shifty has many different plugins and the build script is concatenating all of them into the same file the built file won't work on a AMD environment unless we use named modules (bad for portability) and it won't work on nodejs (since it needs to require
something that is on the same file)
maybe the solution will be to increase the complexity of the build.sh
file to generate different wrappers based on the environment - use a simple IIFE for browser and don't concat files for nodejs and AMD.
(Not sure why this issue shows up as "open" for me, closing it now)
To paraphrase related discussions, the files in /src
do not need to be built as modules, as they will be turned into UMD modules by the build script, once it's rewritten.
I'm using it on a project where I don't want to generate any globals.
the UMDJS repository contains different ways of exporting it.
just asking before I implement it..