2.0.14 • Published 3 years ago

@geut/esbuild-plugin-brode v2.0.14

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

esbuild-plugin-brode

esbuild plugin to add web polyfills to support node core modules and globals

Test Status JavaScript Style Guide standard-readme compliant

Made by GEUT

Why

There a several solutions out there to simulate a node environment in the browser. For example, Browserify and Parcel provides built-in polyfills, Webpack 5 and Rollup needs extra configuration like rollup-plugin-node-polyfills.

But in our experience most of this modules are outdated and it's always missing something.

We create this plugin for esbuild to provide a opinionated setup of web polyfills to support node modules that we want and we need in our apps.

Install

$ npm install --save-dev @geut/esbuild-plugin-brode

Usage

const brode = require('@geut/esbuild-plugin-brode')

require('esbuild').buildSync({
  entryPoints: [...],
  bundle: true,
  minify: true,
  sourcemap: true,
  target: ['chrome58', 'firefox57', 'safari11', 'edge16'],
  outfile: 'out.js',
  plugins: [
    brode()
  ]
})

Issues

:bug: If you found an issue we encourage you to report it on github. Please specify your OS and the actions to reproduce it.

Contributing

:busts_in_silhouette: Ideas and contributions to the project are welcome. You must follow this guideline.

License

MIT © A GEUT project

2.0.13

3 years ago

2.0.14

3 years ago

2.0.12

3 years ago

2.0.5

3 years ago

2.0.4

3 years ago

2.0.11

3 years ago

2.0.7

3 years ago

2.0.6

3 years ago

2.0.9

3 years ago

2.0.10

3 years ago

2.0.8

3 years ago

2.0.2

3 years ago

1.0.2

3 years ago

1.0.10

3 years ago

1.0.9

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

2.0.1

3 years ago

1.0.13

3 years ago

2.0.0

3 years ago

1.0.0

4 years ago