maqetta/maqetta — comment on commit b6c53d7771633a8b4e64ce23441a5ea61fd8c809
File:  line 0
By jhpedemonte:

@JonFerraiolo Yes, I saw that as well. Planning to fix that.

@peller I take it back -- this won't work. We need to call `require()` in order for the AMD module to be properly loaded.

So, I think we need to do something similar to what we did for the old Dojo loader:

```javascript
dojo.registerModulePath(METADATA_CLASS_BASE + libName,
path.relativeTo(dojo.baseUrl).toString());
```

But now we register a module with the AMD loader (something like "metadata-dojo-1.7" ["metadata-<lib short name>-<version>"]). Then we load it thusly:

```javascript```
require([ metadataModule.append(helperPath).toString() ])
// where,
// metadataModule = new Path("metadata-dojo-1.7")
// helperPath = "./dojo/data/ItemFileReadStoreHelper", pulled from widgets.json
```

Of course, this makes it all async, so doesn't solve the immediate problem.