esbuild-plugin-realpath

1.1.3 • Public • Published

esbuild-plugin-realpath

A plugin to resolve the fs.realpath for modules in monorepos targeting the browser and node.

const esbuild = require('esbuild');
const realpath = require('esbuild-plugin-realpath');

esbuild.build({
  entryPoints: ['./src/index.js'],
  bundle: true,
  outfile: './public/bundle.js',
  plugins: [realpath()],
});

Examples

code

/esbuild-plugin-realpath/

    Package Sidebar

    Install

    npm i esbuild-plugin-realpath

    Weekly Downloads

    7

    Version

    1.1.3

    License

    MIT

    Unpacked Size

    3.76 kB

    Total Files

    4

    Last publish

    Collaborators

    • kmalakoff