Skip to content

Latest commit

 

History

History
15 lines (11 loc) · 1.9 KB

CONTRIBUTING.md

File metadata and controls

15 lines (11 loc) · 1.9 KB

How to Contribute

Considerations

This repo is now distributing packages for both module loaded applications as well as global distribution for things such as websites. What this means is:

  1. When adding new peer dependencies to this repo, please account for them in one of the following ways:
    • Bundle the dependency as part of this package. Add these dependencies by updating dependency-externals.json.
    • Externalize the dependency. This forces the consumer to reference the dependency using <script /> tags. Add these dependencies by updating dependency-bundles.json.
  2. When adding new external peer dependencies, please make sure to perform the following:
  3. We need to be careful of loosely adding new peer dependencies to this repo. Adding new peer dependencies to this repo means that the global package will slowly but surely increase in size with peer dependency code (if bundling) OR force consumers to pre-load the peer dependencies (if excluding from bundling). Neither of these approaches are ideal. When considering a new peer dependency, please consider adding an issue to the repo before hand so others can be involved early in the process.

Additional information on contributing to this repo is in the Contributing Guide in the Home repo.