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

Should we make exported dependencies from extensions easily disabled #116

Open
dlmr opened this issue Aug 12, 2016 · 0 comments
Open

Should we make exported dependencies from extensions easily disabled #116

dlmr opened this issue Aug 12, 2016 · 0 comments

Comments

@dlmr
Copy link
Member

dlmr commented Aug 12, 2016

In the coming version of Roc it will be possible for extensions to explicitly define dependencies that they want to expose/export to the project.

Currently there is two ways to disable this behaviour if needed. One that work on a per import basis and the other that is more permanent, however a little complex requiring the use of the new init function inside the projects roc.config.js.

The question is if will be a common scenario to disable exported dependencies and if so if we then should provide a simpler API for permanently disable an exported dependency.

This could for example be done through an object inside roc.config.js that might look something like this:

{
  react: false,
  lodash: false 
}

Will revisit this when we have more data to go on.

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