Skip to content

Providing trace information for best development experience #51

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

Closed
guybedford opened this issue May 30, 2015 · 7 comments
Closed

Providing trace information for best development experience #51

guybedford opened this issue May 30, 2015 · 7 comments

Comments

@guybedford
Copy link

The best development experience with the loader is to use module hot-reloading, without a full page refresh. This way, just the module that changes can be run through loader.set to be updated.

In order for this to work in a dependency tree requires refreshing all the dependencies of the module as well so that they get the new reference to the new module.

This can only be implemented by having dependency information about what modules a given module depends on.

Exposing this dependency information to the loader is thus critical to the development experience.

@MajorBreakfast
Copy link

To clarify: The method returns direct (i.e. no transient) dependencies?

@guybedford
Copy link
Author

Yes, it can be called successively to construct the tree.

@guybedford guybedford changed the title Unit testing & Hot reloading Fast reloading Oct 6, 2015
@guybedford guybedford changed the title Fast reloading Providing trace information for best development experience Oct 6, 2015
@guybedford
Copy link
Author

I've updated this issue title and description to reflect a critical loader feature that I believe is needed - the ability to know the dependencies of modules to enable hot-reloading workflows.

@Munter
Copy link

Munter commented Oct 7, 2015

Having trace information available in the runtime would also help immensely for creating developer tools that could navigate, search and filter the dependency graph. Often times figuring out runtime loading trouble can be really difficult, and exposing more information about the process would be extremely helpful to developers

@capaj
Copy link

capaj commented Oct 7, 2015

Please include importers in the spec. Having this is crucial for dev tools development

@caridy
Copy link
Contributor

caridy commented Dec 1, 2015

This is addressed by PR #97, you can now walk the registry, synchronous, and check the entry.dependencies to inspect the whole dependency tree, and all that is also synchronous.

Additionally, you can use the key or just the references to depEntry to walk the tree.

@caridy caridy closed this as completed Dec 1, 2015
@capaj
Copy link

capaj commented Dec 2, 2015

Awesome, thanks @caridy

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

No branches or pull requests

5 participants