1.1.3 • Published 2 years ago
esbuild-plugin-realpath v1.1.3
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()],
});