returnExportsGlobal.js.is not included in the templates directory.
niemyjski opened this issue · comments
In the docs it talks about being able to use returnExportsGlobal.js. but it's not included in the npm package.
Hi niemyjski,
I'm not the maintainer but since I was already here looking to get my pull request merged, I thought I'd answer.
Its probably not as clear as it should be, but the file you refer to is actually part of the umd project. To use it, you will need to create your own template and include it using either the template or templateSource options.
So, in that case, gulp-umd seems kinda useless and all its benefits are lost :s
At the end of the documentation, it's mentionned that we can achieved it by simply installing https://github.com/talyssonoc/umd-templates
Configure the template
option and you're done!
The documentation should be clearer, but I think this issue can be closed ;)
Sounds like we need an optional dependency?