Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing subpackages #6

Open
firelizzard18 opened this issue Nov 23, 2017 · 0 comments
Open

Missing subpackages #6

firelizzard18 opened this issue Nov 23, 2017 · 0 comments

Comments

@firelizzard18
Copy link

I wasn't getting nearly as much information as I wanted, so I added the following:

var systemResolve = System.resolve;
System.resolve = function (key, parent) {
  return systemResolve.apply(this, arguments)
    .then(path => {
      if (parent) {
        var parentData = imports[parent] = imports[parent] || {};
        var childData = imports[path] = imports[path] || {};

        childData.importPath = path
        parentData.importPath = parent

        if (parentData.deps)
          parentData.deps.push(childData);
        else
          parentData.deps = [childData];
      }
      return path;
    });
}

This captured much more information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant