This repository provides an implementatoin base on AMD for understanding the big picture of the specification. The community has lots of greate implementations, such as requirejs, esl, kittyjs and so on that are the references of this implementation.
Amdjs-tests is the official tests of AMD. Amdloader has passed the tests of the features below.
Feature | implementation |
---|---|
basic |
true |
anon |
true |
funcString |
true |
namedWrapped |
true |
require |
true |
pathsConfig |
true |
packagesConfig |
true |
mapConfig |
true |
moduleConfig |
true |
plugins |
false |
shimConfig |
false |
pluginDynamic |
false |
~ git clone https://github.com/dzyhenry/amdloader.git
~ yarn install
~ node test/amdjs-tests/server/server
- Open: http://localhost:4000 in your browser to check the test result.