Skip to content

Christian24/polyfills

 
 

Repository files navigation

Build Status Mentioned in Web Components the Right Way

Monorepository for WebComponents v1 polyfills

Note. For polyfills that work with the older Custom Elements and Shadow DOM v0 specs, see the v0 branch of the webcomponentsjs repo.

Note. For polyfills that work with HTML Imports, see the v1 branch of the webcomponentsjs repo.

A suite of polyfills supporting the Web Components specs:

For browsers that need it, there are also some minor polyfills included:

How to Install

Everything

The entire WebComponents suite can be installed at once and loaded together for maximum compatibility.

More information about how the polyfill bundles, and feature-detecting loader work are in the webcomponentsjs README.

Individually

Individual polyfills can be installed with the @webcomponentsjs/ scope

npm install @webcomponents/custom-elements

Note: This polyfill requires manual setup and API calls for style encapsulation

npm install @webcomponents/shadydom @webcomponents/shadycss
npm install @webcomponents/template

⚠️ HTML Imports has been deprecated, and will be removed from Chrome in the future. Please transition to ES Modules! ⚠️

npm install @webcomponents/html-imports

How to Develop

npm install
npm run bootstrap
npm run build

How to Test

npm run build
npm test

Releases

No releases published

Packages

No packages published

Languages

  • HTML 59.6%
  • JavaScript 40.3%
  • CSS 0.1%