@chialab/esbuild-plugin-commonjs

A commonjs to esm converter for esbuild.

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
@chialab/esbuild-plugin-commonjs
11500.17.1a month agoa year agoMinified + gzip package size for @chialab/esbuild-plugin-commonjs in KB

Readme

<strong>Esbuild Plugin Commonjs</strong> • A commonjs to esm converter for <a href="https://esbuild.github.io/">esbuild</a>.


<a href="https://www.npmjs.com/package/@chialab/esbuild-plugin-commonjs"><img alt="NPM" src="https://img.shields.io/npm/v/@chialab/esbuild-plugin-commonjs.svg?style=flat-square"></a>


Install

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

Usage

import esbuild from 'esbuild';
import commonjsPlugin from '@chialab/esbuild-plugin-commonjs';

await esbuild.build({
    plugins: [
        commonjsPlugin(),
    ],
});

License

Esbuild Plugin Commonjs is released under the MIT license.