@@ -228,6 +228,8 @@ The following loaders are included in webpack:
228228
229229See docs for loader in github repo of the loader.
230230
231+ [ Bigger list of loaders] ( https://github.com/webpack/webpack/wiki/Loaders )
232+
231233## TL;DR
232234
233235``` javascript
@@ -580,7 +582,7 @@ Combine the options `--colors --watch --progress` to get a pretty shell compilat
580582 webpack/<br/>webpack
581583 </th >
582584 <th >
583- medikoo /<br/>modules-<br/>webmake
585+ jrburke /<br/>requirejs
584586 </th >
585587 <th >
586588 substack/<br/>node-<br/>browserify
@@ -589,13 +591,13 @@ Combine the options `--colors --watch --progress` to get a pretty shell compilat
589591
590592 <tr >
591593 <td >
592- single bundle
594+ sync <code>require</code>
593595 </td >
594596 <td >
595597 yes
596598 </td >
597599 <td >
598- yes
600+ only wrapped
599601 </td >
600602 <td >
601603 yes
@@ -604,7 +606,7 @@ Combine the options `--colors --watch --progress` to get a pretty shell compilat
604606
605607 <tr >
606608 <td >
607- multiple bundles, Code Splitting
609+ sync <code>require.resolve</code>
608610 </td >
609611 <td >
610612 yes
@@ -613,20 +615,19 @@ Combine the options `--colors --watch --progress` to get a pretty shell compilat
613615 no
614616 </td >
615617 <td >
616- no
618+ yes
617619 </td >
618620 </tr >
619621
620622 <tr >
621623 <td >
622- indirect require
623- <code>var r = require; r("./file");</code>
624+ <code>define</code>
624625 </td >
625626 <td >
626- in directory
627+ yes
627628 </td >
628629 <td >
629- include by config option
630+ yes
630631 </td >
631632 <td >
632633 no
@@ -635,8 +636,7 @@ Combine the options `--colors --watch --progress` to get a pretty shell compilat
635636
636637 <tr >
637638 <td >
638- concat in require
639- <code>require("./fi" + "le")</code>
639+ async <code>require</code>
640640 </td >
641641 <td >
642642 yes
@@ -651,30 +651,28 @@ Combine the options `--colors --watch --progress` to get a pretty shell compilat
651651
652652 <tr >
653653 <td >
654- variables in require (local)
655- <code>require("./templates/"+template)</code>
654+ single bundle
656655 </td >
657656 <td >
658- yes, complete directory included
657+ yes
659658 </td >
660659 <td >
661- include by config option
660+ yes
662661 </td >
663662 <td >
664- no
663+ yes
665664 </td >
666665 </tr >
667666
668667 <tr >
669668 <td >
670- variables in require (global)
671- <code>require(moduleName)</code>
669+ load each file seperate
672670 </td >
673671 <td >
674672 no
675673 </td >
676674 <td >
677- include by config option
675+ yes
678676 </td >
679677 <td >
680678 no
@@ -683,74 +681,45 @@ Combine the options `--colors --watch --progress` to get a pretty shell compilat
683681
684682 <tr >
685683 <td >
686- node buildin libs
687- <code>require("http");</code>
684+ multiple bundles, Code Splitting
688685 </td >
689686 <td >
690687 yes
691688 </td >
692689 <td >
693690 no
694691 </td >
695- <td >
696- yes
697- </td >
698- </tr >
699-
700- <tr >
701- <td >
702- <code>process</code> polyfill
703- </td >
704- <td >
705- yes, on demand
706- </td >
707692 <td >
708693 no
709694 </td >
710- <td >
711- yes, ever
712- </td >
713695 </tr >
714696
715697 <tr >
716698 <td >
717- <code>module</code> polyfill
718- </td >
719- <td >
720- yes, on demand
721- </td >
722- <td >
723- no
724- </td >
725- <td >
726- no
699+ indirect require
700+ <code>var r = require; r("./file");</code>
727701 </td >
728- </tr >
729-
730- <tr >
731702 <td >
732- <code>require.resolve</code>
703+ in directory
733704 </td >
734705 <td >
735- yes
706+ yes (not bundled)
736707 </td >
737708 <td >
738709 no
739710 </td >
740- <td >
741- yes
742- </td >
743711 </tr >
744712
745713 <tr >
746714 <td >
747- <code>global</code> to <code>window</code> mapping
715+ concat in require
716+ <code>require("./fi" + "le")</code>
748717 </td >
749718 <td >
750719 yes
751720 </td >
752721 <td >
753- no
722+ yes (not bundled)
754723 </td >
755724 <td >
756725 no
@@ -759,43 +728,30 @@ Combine the options `--colors --watch --progress` to get a pretty shell compilat
759728
760729 <tr >
761730 <td >
762- requirable files
763- </td >
764- <td >
765- filesystem
766- </td >
767- <td >
768- directory scope
769- </td >
770- <td >
771- filesystem
731+ variables in require (local)
732+ <code>require("./templates/"+template)</code>
772733 </td >
773- </tr >
774-
775- <tr >
776734 <td >
777- different modules with same name
735+ yes, complete directory included
778736 </td >
779737 <td >
780- yes
738+ yes (not bundled)
781739 </td >
782740 <td >
783741 no
784742 </td >
785- <td >
786- yes
787- </td >
788743 </tr >
789744
790745 <tr >
791746 <td >
792- eliminate duplicate code
747+ variables in require (global)
748+ <code>require(moduleName)</code>
793749 </td >
794750 <td >
795751 no
796752 </td >
797753 <td >
798- no
754+ yes (not bundled)
799755 </td >
800756 <td >
801757 no
@@ -804,16 +760,16 @@ Combine the options `--colors --watch --progress` to get a pretty shell compilat
804760
805761 <tr >
806762 <td >
807- require JSON
763+ requirable files
808764 </td >
809765 <td >
810- yes
766+ filesystem
811767 </td >
812768 <td >
813- no
769+ web
814770 </td >
815771 <td >
816- no
772+ filesystem
817773 </td >
818774 </tr >
819775
@@ -840,7 +796,7 @@ Combine the options `--colors --watch --progress` to get a pretty shell compilat
840796 yes
841797 </td >
842798 <td >
843- no
799+ yes
844800 </td >
845801 <td >
846802 no
@@ -849,13 +805,13 @@ Combine the options `--colors --watch --progress` to get a pretty shell compilat
849805
850806 <tr >
851807 <td >
852- compile coffee script
808+ watch mode
853809 </td >
854810 <td >
855811 yes
856812 </td >
857813 <td >
858- no
814+ not needed
859815 </td >
860816 <td >
861817 yes
@@ -864,13 +820,13 @@ Combine the options `--colors --watch --progress` to get a pretty shell compilat
864820
865821 <tr >
866822 <td >
867- watch mode
823+ debug support
868824 </td >
869825 <td >
870826 yes
871827 </td >
872828 <td >
873- no
829+ yes
874830 </td >
875831 <td >
876832 yes
@@ -879,7 +835,8 @@ Combine the options `--colors --watch --progress` to get a pretty shell compilat
879835
880836 <tr >
881837 <td >
882- debug mode
838+ node buildin libs
839+ <code>require("path");</code>
883840 </td >
884841 <td >
885842 yes
@@ -894,46 +851,47 @@ Combine the options `--colors --watch --progress` to get a pretty shell compilat
894851
895852 <tr >
896853 <td >
897- libaries
854+ <code>process</code> polyfill
898855 </td >
899856 <td >
900- on global obj
857+ yes, on demand
901858 </td >
902859 <td >
903860 no
904861 </td >
905862 <td >
906- requirable
863+ yes, ever
907864 </td >
908865 </tr >
909866
910867 <tr >
911868 <td >
912- browser replacements
869+ <code>global</code> to <code>window</code> mapping
913870 </td >
914871 <td >
915- <code>web_modules</code> and <code>.web.js</code>
872+ yes
916873 </td >
917874 <td >
918875 no
919876 </td >
920877 <td >
921- by alias config option
878+ no
922879 </td >
923880 </tr >
924881
925882 <tr >
926883 <td >
927- compiles with (optional) modules missing
884+ node browser replacements
928885 </td >
929886 <td >
930- yes, emit warnings
887+ <code>web_modules</code> and <code>.web.js</code><br />
888+ by alias config option
931889 </td >
932890 <td >
933- no
891+ by alias config option
934892 </td >
935893 <td >
936- no
894+ by alias config option
937895 </td >
938896 </tr >
939897</table >
@@ -961,10 +919,8 @@ You are also welcome to correct any spelling mistakes or any language issues, be
961919
962920## Future plans
963921
964- * more polyfills for node.js buildin modules, but optional
965- * split require-polyfill from webpack and offer it as seperate module
922+ * more and better polyfills for node.js buildin modules
966923* cache in folder and allow reuseing it
967- * migrate tests to mocha
968924* write it into the wiki if you have more ideas...
969925
970926## License
0 commit comments