@esbuild-plugins/esm-externals
TypeScript icon, indicating that this package has built-in type declarations

0.1.2 • Public • Published

@esbuild-plugins/esm-externals

Makes some packages externals and forces the output to be valid ESM, converting all require calls to valid ESM

import EsmExternals from '@esbuild-plugins/esm-externals'
import { build } from 'esbuild'
build({
    plugins: [EsmExternals({ externals: ['react', 'react-dom'] })],
})

Readme

Keywords

none

Package Sidebar

Install

npm i @esbuild-plugins/esm-externals

Weekly Downloads

942

Version

0.1.2

License

ISC

Unpacked Size

24.8 kB

Total Files

28

Last publish

Collaborators

  • xmorse