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

[WIP] Container refactor #287

Closed
wants to merge 4 commits into from
Closed

[WIP] Container refactor #287

wants to merge 4 commits into from

Conversation

davewasmer
Copy link
Collaborator

The resolver and related refactor enables:

  1. Lazy loading of app code, which is now the default. It doesn't preclude eager loading though, and future work could add an eager load option for production environments. This matches our long term goal - lazy load for faster dev and test environments, and eager load for production for smoother, more predictable performance.

  2. Customizable directory structures. This is generally not a good idea for the casual use case, but it's possible that some additional type of code asset might need different lookup rules (i.e. test files)

  3. Cleaner addon / application loading. The application logger is now customizable by simply adding app/logger.js (as long as the interface matches). Same for the app/router.js.

This also solves some outstanding issues: fixes #285, #284

The resolver and related refactor enables:

1. Lazy loading of app code, which is now the default. It doesn't
preclude eager loading though, and future work could add an eager load
option for production environments.

2. Customizable directory structures. This is generally not a good idea
for the casual use case, but it's possible that some additional type of
code asset might need different lookup rules (i.e. test files)

3. Cleaner addon / application loading. The application logger is now
customizable by simply adding `app/logger.js` (as long as the interface
matches). Same for the `app/router.js`.

This also solves some outstanding issues: fixes #285, #284
@davewasmer davewasmer closed this Mar 20, 2017
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

Successfully merging this pull request may close these issues.

Ensure containers get a unique copy of loaded classes
1 participant