1.0.0 • Published 8 months ago

@mnrendra/rollup-plugin-esbuild v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

@mnrendra/rollup-plugin-esbuild

A rollup-plugin-esbuild with dual exports, allowing consumers to import or require it without needing to access the .default export in both CommonJS and ES Module formats.

This 🍣 Rollup plugin is only linked to rollup-plugin-esbuild version ^6.2.1, so it doesn’t modify any original code except for how it is exported and packaged.

Thank you to @egoist for creating rollup-plugin-esbuild.

Install

npm i -D @mnrendra/rollup-plugin-esbuild

Usage

For ES modules (rollup.config.mjs):

import esbuild from '@mnrendra/rollup-plugin-esbuild'

export default {
  // ... any Rollup options
  plugins: esbuild({
    // rollup-plugin-esbuild's options
  })
}

For CommonJS (rollup.config.js):

const esbuild = require('@mnrendra/rollup-plugin-esbuild')

module.exports = {
  // ... any Rollup options
  plugins: esbuild({
    // rollup-plugin-esbuild's options
  })
}

Contribute

Contributions are always welcome! Feel free to start a discussion here. Or, if you find any issues with this package, please open an issue here.

License

MIT

Author

@mnrendra