Skip to content

Latest commit

 

History

History
47 lines (31 loc) · 706 Bytes

File metadata and controls

47 lines (31 loc) · 706 Bytes

This example shows how you can mix different module styles in webpack. Here CommonJs, AMD and Harmony Modules (ES6 Modules) are used. In addition to that there are different types of dynamic requires ("../require.context/templates/"+amd1+".js" and Math.random() < 0.5 ? "./commonjs" : "./amd").

You see that everything is working nicely together.

example.js

{{example.js}}

amd.js

{{amd.js}}

commonjs.js

{{commonjs.js}}

dist/output.js

{{dist/output.js}}

dist/0.output.js

{{dist/0.output.js}}

Info

Unoptimized

{{stdout}}

Production mode

{{production:stdout}}