kmalakoff / esbuild-plugin-realpath

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

License:MIT License


Languages

Language:JavaScript 89.3%Language:TypeScript 10.7%