@chialab/wds-plugin-polyfill
TypeScript icon, indicating that this package has built-in type declarations

0.18.0 • Public • Published

Wds Plugin Polyfill • Inject polyfills to HTML responses served by the Web Dev Server.

NPM


Install

npm i @chialab/wds-plugin-polyfill -D
yarn add @chialab/wds-plugin-polyfill -D

Usage

import { startDevServer } from '@web/dev-server';
import { polyfillPlugin } from '@chialab/wds-plugin-polyfill';

await startDevServer({
    plugins: [
        polyfillPlugin({
            minify: true,
            features: {
                'URL': {},
                'URL.prototype.toJSON': {},
                'URLSearchParams': {},
                'Promise': {},
                'Promise.prototype.finally': {},
                'fetch': {},
            },
        }),
    ],
});

It uses the polyfill.io library under the hoods.


License

Wds Plugin Polyfill is released under the MIT license.

Package Sidebar

Install

npm i @chialab/wds-plugin-polyfill

Weekly Downloads

5

Version

0.18.0

License

MIT

Unpacked Size

5.71 kB

Total Files

5

Last publish

Collaborators

  • chialab-admin
  • chialab-developers