© Carlos Rojas 2021
C. RojasBuilding Native Web Componentshttps://doi.org/10.1007/978-1-4842-5905-4_7

7. Distributing Web Components

Carlos Rojas1 
(1)
Medellin, Colombia
 

In this chapter, you will learn how to make our web components available in npm. You are also going to learn about the browser support offered by Web Components APIS, how to add polyfills to support more web browsers, and how to add Webpack and Babel to process and prepare our web components for publication.

Publishing to npm

In Chapter 6, we created three components: <simple-form-modal-component>, <note-list-component>, and <note-list-item-component>. Now we are going to make these components available through www.npmjs.com.npm is a repository of packages that we can add in our projects ...

Get Building Native Web Components: Front-End Development with Polymer and Vue.js now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.