An esbuild plugin that copies specified files and directories (including glob patterns) to the output folder after bundling. Current version 2.0.0-next.0 is a pre-release. Release cadence is irregular; the plugin is stable but not widely used. Differentiators: lightweight, no external dependencies, supports both exact file paths and glob patterns, and works alongside esbuild without altering the bundling process. TypeScript types included. Suitable for including static assets like images, configuration files, or any non-code artifacts in the esbuild output.
npm install esbuild-plugin-file-copyNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates configuring fileCopyPlugin with both explicit file paths and glob patterns during esbuild build.
Use 1.x if stability needed; check changelog for changes.
Use absolute paths or ensure consistency with esbuild's working directory.
Only copy files that exist before the build starts or ensure they are present before the plugin runs.
Use 'inputs' for single files; 'globs' for patterns; check future releases.
Install as dev dependency: npm install -D esbuild-plugin-file-copy. Use ESM imports: import { fileCopyPlugin } from 'esbuild-plugin-file-copy'.Ensure correct import: import { fileCopyPlugin } from 'esbuild-plugin-file-copy'. Then use as a function call: fileCopyPlugin({...}) inside the plugins array.Verify the 'from' path is correct and the file exists; use absolute paths or adjust relative path from working directory.
No dependency data recorded yet.