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

Don't load unneeded modules #1

Open
hbj opened this issue Mar 1, 2017 · 0 comments
Open

Don't load unneeded modules #1

hbj opened this issue Mar 1, 2017 · 0 comments

Comments

@hbj
Copy link
Contributor

hbj commented Mar 1, 2017

Move all code that needs optional modules to files that are only loaded if that corresponding configuration is not disabled.

Example:

Mongoose

  • remove dependency on it, so projects that need it have to include it in their dependencies
  • move mongoose-specific code in server-ext to mongoose initialisation file

This way mongoose is only loaded if the mongoose initialisation file is loaded which done only if the mongoose configuration is not disabled.

@hbj hbj added the enhancement label Mar 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant