What is the Difference between amd.js file & main.js file in a Javascript node project

Question is related to javascript project which uses node and web pack.
I see in my current project there is node_module -> lib folder , there is xyz.js file in lib folder.
And in dist folder of node_module there is xyz.amd.js & xyz.main.js & respective js.map
I would like to know what is difference between and & main.js files
And how the Current project which contains this node_module folder uses these files.

If you can point me to any site/tutorial explaining these. it would be helpfull

96 thoughts on “What is the Difference between amd.js file & main.js file in a Javascript node project”

  1. Hello! I know this is kinda off topic but I’d figured
    I’d ask. Would you be interested in exchanging links or maybe guest authoring a blog article or vice-versa?
    My blog goes over a lot of the same topics as yours and I
    think we could greatly benefit from each other. If you happen to be
    interested feel free to send me an e-mail.
    I look forward to hearing from you! Excellent
    blog by the way! http://droga5.net/

    Reply
  2. Fantastic goods from you, man. I’ve bear in mind your stuff previous to and you’re
    just too excellent. I actually like what you have received right here, certainly like what you are saying and the way wherein you assert
    it. You are making it entertaining and you still care
    for to keep it wise. I can not wait to learn far more from
    you. That is actually a terrific web site. http://antiibioticsland.com/Doxycycline.htm

    Reply

Leave a Comment