@chialab/wds-plugin-commonjsdeprecated

A commonjs to esm transformer for the web dev server.

Usage no npm install needed!

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

README

Wds Plugin Commonjs • A commonjs to esm transformer for the Web Dev Server.

NPM

⚠️ The development of this plugin has been suspended as it has been replaced by another plugin in the RNA ecosystem, but it can be a reference for other developers.


Install

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

Usage

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

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

License

Wds Plugin Commonjs is released under the MIT license.