Skip to content

kmalakoff/esbuild-plugin-realpath

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published