esbuild-plugin-react-virtualized
v1.0.4
Published
ESBuild plugin for fixing react-virtualized
Downloads
133,870
Readme
esbuild-plugin-react-virtualized
This ESBuild plugin fixes the following issue in react-virtualized:
ERROR: No matching export in "node_modules/react-virtualized/dist/es/WindowScroller/WindowScroller.js" for import "bpfrpt_proptype_WindowScroller"
Install
yarn add -D esbuild-plugin-react-virtualized
Usage
ESBuild
import * as esbuild from 'esbuild'
import fixReactVirtualized from 'esbuild-plugin-react-virtualized'
await esbuild.build({
entryPoints: ['app.js'],
bundle: true,
outfile: 'out.js',
plugins: [fixReactVirtualized],
})
Vite
// vite.config.js
import { defineConfig } from 'vite'
import fixReactVirtualized from 'esbuild-plugin-react-virtualized'
export default defineConfig({
optimizeDeps: {
esbuildOptions: {
plugins: [fixReactVirtualized],
},
},
})