custom-elements-native-shim

1.1.0 • Public • Published

custom-elements-native-shim

A function to shim any built-in element written in, or compiled to, ES5.

This shim allows elements written in, or compiled to, ES5 to work on native implementations of Custom Elements v1. It sets new.target to the value of this.constructor so that the native element constructor can access the current under-construction element's definition.

install

> npm install custom-elements-native-shim

use

import shim from "custom-elements-native-shim";
shim("HTMLLIElement");

Readme

Keywords

none

Package Sidebar

Install

npm i custom-elements-native-shim

Weekly Downloads

9

Version

1.1.0

License

ISC

Unpacked Size

1.76 kB

Total Files

3

Last publish

Collaborators

  • defx