mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Expose manifest of dynamic modules to the dynamic-import package.
This commit is contained in:
@@ -132,6 +132,25 @@ var specialArgPaths = {
|
||||
npmRequire: npmRequire,
|
||||
Profile: Profile
|
||||
};
|
||||
},
|
||||
|
||||
"packages/dynamic-import.js": function (file) {
|
||||
var dynamicImportInfo = {};
|
||||
|
||||
Object.keys(configJson.clientPaths).map(function (key) {
|
||||
var programJsonPath = path.resolve(configJson.clientPaths[key]);
|
||||
var programJson = require(programJsonPath);
|
||||
|
||||
dynamicImportInfo[key] = {
|
||||
dynamicRoot: path.join(path.dirname(programJsonPath), "dynamic")
|
||||
};
|
||||
});
|
||||
|
||||
dynamicImportInfo.server = {
|
||||
dynamicRoot: path.join(serverDir, "dynamic")
|
||||
};
|
||||
|
||||
return { dynamicImportInfo: dynamicImportInfo };
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user