Skip to content

Latest commit

 

History

History
19 lines (14 loc) · 455 Bytes

README.md

File metadata and controls

19 lines (14 loc) · 455 Bytes

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