mirror of https://github.com/webpack/webpack.git
15 lines
396 B
JavaScript
15 lines
396 B
JavaScript
// CommonJs-style requires
|
|
var commonjs1 = require("./commonjs");
|
|
var amd1 = require("./amd");
|
|
var harmony1 = require("./harmony");
|
|
|
|
// AMD-style requires (with all webpack features)
|
|
require([
|
|
"./commonjs", "./amd",
|
|
"../require.context/templates/"+amd1+".js",
|
|
Math.random() < 0.5 ? "./commonjs" : "./amd"],
|
|
function(commonjs2, amd2, template, randModule) {
|
|
// Do something with it...
|
|
}
|
|
);
|