eduardolundgren / gulp-umd

Gulp plugin for build JavaScript files as Universal Module Definition, aka UMD
MIT License
126 stars 14 forks source link

More documentation on dependencies #21

Open panakran opened 7 years ago

panakran commented 7 years ago

Would it be possible to provide an (realistic) example of how let's say angular1.x and jquery can be included as dependencies, in the string-based and object-based form?

alvarotrigo commented 6 years ago

+1

Lazerbeak12345 commented 2 years ago

yeah... I'm not following the readme very well. Something even just as simple to import as jquery or lodash would be just great - as you could easily see where you put your require statement or whatever.

Specifically, It's unclear on this:

If I have some javascript code in CommonJS format, for example, and run this on it, does it just work? Does that mean I can use typescript to generate that commonjs, then output the correct uml output? (In particular, "uml" output mode on tsc doesn't support fallback to globalizing if no module loader is detected so that's why I'm even looking at this project to begin with.)