Closed millermedeiros closed 11 years ago
a solution if you want the AMD modules is to use bower to install the AMD version:
bower install amd-utils
One typical use case for this is a package that is built using amd but also has nodejs support, so it uses amdefine. The package tests work on both node and in the browser but since amd-utils is now commonjs in npm, it won't work in the browser anymore.
I pushed v0.9.0 to npm which includes the src
folder, feel free to reopen in case that doesn't solve your issue.
for instance if they have test runners that should work on the browser and on node.js..
maybe use an UMD wrapper instead of converting source files into CJS or keep the
src
folder on the npm package.