An esbuild plugin that transforms tagged GraphQL template literals for Relay by replacing `graphql` tagged templates with imports to the artifacts generated by `relay-compiler`. Version 1.0.0 is stable but uses naive string replacement rather than AST parsing, so it will attempt to compile even commented-out GraphQL literals. It supports both CommonJS and ESM module formats and is inspired by babel-plugin-relay, but with a simpler, faster approach for esbuild users. Release cadence is low; not actively maintained.
No compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
ESM-only; named export, not default.
esbuild itself is also ESM-only. Use dynamic import or ESM context.
Shows basic usage of esbuild-relay-plugin with esbuild, specifying artifact directory and TypeScript language.
Breaking-change detection hasn't run for this library yet.
CVE tracking and dependency tree are planned for a later release.