amdjs/amdjs-api — Issue #8: Document entry point for a multi-module program
Author: davidaurelio
Created: 2012-01-03 11:48:00+00:00
State: open

The wiki states that an AMD loader only needs to provide one global: The “define” function.

It’s unclear what the main entry point of a program that uses multiple modules is.

E.g., when writing a program that uses modules “a”, “b”, and “c”, how would that look like?

I assume that
~~~js
define(['a', 'b', 'c'], function(a, b, c) {
// main functionality here
});
~~~
would never be executed.