parent
c6267a8c9d
commit
1885909e93
|
@ -54,10 +54,10 @@ rec {
|
||||||
removeAttrs (delayProperties m) ["require"];
|
removeAttrs (delayProperties m) ["require"];
|
||||||
in
|
in
|
||||||
if isModule m then
|
if isModule m then
|
||||||
{ key = "<unknow location>"; } // m
|
{ key = "<unknown location>"; } // m
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
key = "<unknow location>";
|
key = "<unknown location>";
|
||||||
imports = getImportedPaths m;
|
imports = getImportedPaths m;
|
||||||
config = getConfig m;
|
config = getConfig m;
|
||||||
} // (
|
} // (
|
||||||
|
@ -73,7 +73,7 @@ rec {
|
||||||
moduleImport = m:
|
moduleImport = m:
|
||||||
(unifyModuleSyntax (applyIfFunction (importIfPath m) args)) // {
|
(unifyModuleSyntax (applyIfFunction (importIfPath m) args)) // {
|
||||||
# used by generic closure to avoid duplicated imports.
|
# used by generic closure to avoid duplicated imports.
|
||||||
key = if isPath m then m else "<unknow location>";
|
key = if isPath m then m else "<unknown location>";
|
||||||
};
|
};
|
||||||
|
|
||||||
getImports = m: attrByPath ["imports"] [] m;
|
getImports = m: attrByPath ["imports"] [] m;
|
||||||
|
|
Loading…
Reference in New Issue