@chialab/wds-plugin-legacy

Transform esm modules served by the web dev server into SystemJS modules for legacy browser compatibility.

Usage no npm install needed!

<script type="module">
  import chialabWdsPluginLegacy from 'https://cdn.skypack.dev/@chialab/wds-plugin-legacy';
</script>

README

Wds Plugin Legacy • Transform esm modules served by the Web Dev Server into SystemJS modules for legacy browser compatibility.

NPM


Install

$ npm i @chialab/wds-plugin-legacy -D
$ yarn add @chialab/wds-plugin-legacy -D

Usage

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

await startDevServer({
    plugins: [
        legacyPlugin(),
    ],
});

This is similar to the official legacy plugin, but with a different polyfill strategy.


License

Wds Plugin Legacy is released under the MIT license.