Giter VIP home page Giter VIP logo

polyfills's Introduction

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

polyfills's People

Contributors

dfreedm avatar bicknellr avatar timvdlippe avatar justinfagnani avatar notwaldorf avatar kevinpschaaf avatar addyosmani avatar valdrinkoshi avatar sorvell avatar garlicnation avatar nazar-pc avatar fluorescenthallucinogen avatar aomarks avatar rictic avatar ebidel avatar eeid26 avatar nevir avatar talee avatar web-padawan avatar ruphin avatar bbsteventill avatar treshugart avatar tomalec avatar rslawik avatar koenkivits avatar jakemac53 avatar micahscopes avatar eisenbergeffect avatar cronon avatar vicb avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.