An esbuild plugin that allows importing PureScript (.purs) files directly in JavaScript/TypeScript bundles. Version 1.1.1. It resolves PureScript modules by pointing esbuild to the compiled output directory (default: './output'). Does not run 'spago build' or tree-shake with zephyr; users must precompile PureScript separately. Minimal zero-config setup with source globs.
npm install esbuild-plugin-purescriptNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Registers the plugin with esbuild, specifying PureScript output directory and source globs.
Run 'spago build' or 'purs compile' before esbuild.
Explicitly set 'sources' to a narrow glob matching your source files.
Use zephyr for tree-shaking or manually trim output.
Ensure esbuild is in CommonJS mode or use 'await import()' workaround.
Run 'npm install esbuild-plugin-purescript'.
Use 'import PurescriptPlugin from 'esbuild-plugin-purescript'' or '{ default: PurescriptPlugin }'.Run 'spago build' first and verify output paths.
No dependency data recorded yet.