webpack/examples/mixed/amd.js

12 lines
298 B
JavaScript
Raw Normal View History

2012-08-07 04:19:15 +08:00
// AMD Module Format
define(
"app/amd", // anonym is also supported
2016-09-07 18:25:02 +08:00
["./commonjs", "./harmony"],
function(commonjs1, harmony1) {
2012-08-07 04:19:15 +08:00
// but you can use CommonJs-style requires:
var commonjs2 = require("./commonjs");
var harmony2 = require("./harmony");
2012-08-07 04:19:15 +08:00
// Do something...
return 456;
}
);