4 ms·
What does it mean to vendor the script?
by ddalex 3y ago
What does it mean to vendor the script?
- bheadmaster 3y agoI assume it means the same thing as to vendor anything else: to bundle dependencies as a part of your application instead of giving users "links" to the dependencies served by a third party.
- lelandfe 3y agoThey just mean "load your JS from your own site, not some other person's site"
- hnbad 3y agoTo elaborate on the more pragmatic answers: vendoring generally refers to adding the source code of a dependency to your source control repository rather than having an install step (or expecting libraries to be provided by system level package managers) as part of your development process. In JavaScript these days, dependencies are usually loaded from npm so avoiding the bundling step for client-side code would naively mean replacing those dependencies with links to a third-party service like unpkg, which serves code published to npm for the browser. As others have explained, vendoring in this case would mean shipping those dependencies as part of your application code so they are served from your own domain. Of course at the moment a lot of dependencies will likely simply not work if imported directly from the browser.
- benatkin 3y agoTo clarify, it isn't vendoring to have an external script in your build output. Just because it's technical jargon doesn't mean there can't be a clear meaning of it.
- Karellen 3y agohttps://stackoverflow.com/questions/26217488/what-is-vendoring https://stackoverflow.com/questions/26217488/what-is-vendori...