In response to an audience question, Kent spends a few minutes talking about peer dependencies. When a library uses peer dependencies, it will specify a range of compatible versions. If one of those versions is already available, it will be used instead of a new version getting imported.
(dramatic flute music)…- I'm going to stop for questions,…'cause that is it for the browser build portion.…If anybody wants me to go deeper into Webpack,…I can, or if you feel comfortable with your abilities…with Google, that's cool, too.…Yeah?…- [Student] So there was a dependency…to unique random array before that is,…that's just injected then into the code directly?…- Yeah.…Yeah, so, and, actually, I'm glad that you brought that up.…
So, with, if we think about the two weights…that we're distributing in this now,…in one way, we say okay, we're distributing this…to the NPM registry but we're not sending all…of our dependencies up to the registry.…We're just telling the registry, hey,…I depend on these things, and relying…on the registry to install those things…when somebody installs our module.…The cool think about that with NPM3 is,…if somebody else is using unique random array,…then they can use the same one.…And so there's not code duplication and stuff.…
With the browser build, though,…people probably don't want to have a bunch…
Note: This course was created by Frontend Masters. It was originally released on 08/09/2016. We're pleased to host this training in our library.
- Creating an open-source library
- Linting and testing
- Code coverage
- Installing and configuring Babel
- Peer dependencies
- Forking and renaming
- Continuous integration and automating releases
Skill Level Intermediate
1. Creating an Open-Source Library
2. Linting and Testing
3. Git Hooks, Babel, and Webpack
4. Continuous Integration and Automating Releases
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.