Chapter 12. Building and supporting older browsers
This chapter covers
- Module bundling with Rollup
- Transpiling with Babel to allow Web Components in IE11
- Running and combining scripts with npm and package.json
- Using dev dependencies in package.json
- Ponyfilling CSS vars for IE11
In the last chapter, we finished building a reusable color picker component consisting of a few different custom components itself. It works pretty well, but the question now is whether this component works for all your target users. It certainly could, and we might stop here. The component we’ve built supports Chrome, Firefox, and Safari. This leaves only one modern browser left: Microsoft Edge.
As of now in this book, we’ve covered nearly every Web Component concept ...
Get Web Components in Action 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.