{"_id":"@aleclarson/tsrx-bun-plugin-preact","name":"@aleclarson/tsrx-bun-plugin-preact","dist-tags":{"latest":"0.0.10"},"versions":{"0.0.10":{"name":"@aleclarson/tsrx-bun-plugin-preact","description":"Bun plugin for @tsrx/preact (.tsrx modules)","license":"MIT","author":{"name":"Dominic Gannaway"},"version":"0.0.10","type":"module","publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/Ripple-TS/ripple.git","directory":"packages/bun-plugin-preact"},"exports":{".":{"types":"./types/index.d.ts","default":"./src/index.js"}},"dependencies":{"@tsrx/preact":"0.0.10"},"peerDependencies":{"bun":"^1.0.0","preact":">=10"},"devDependencies":{"@types/bun":"^1.3.9","preact":"^10.27.0","typescript":"^5.9.3"},"scripts":{"test":"pnpm -w test --project bun-plugin-preact"},"_id":"@aleclarson/tsrx-bun-plugin-preact@0.0.10","bugs":{"url":"https://github.com/Ripple-TS/ripple/issues"},"homepage":"https://github.com/Ripple-TS/ripple#readme","_integrity":"sha512-OmVGTXIjSI+zm+Nx9q0o+A+ng4eCHQuYFpSgP4GFwUcbpJqw8OhmEFSSEKlqCCT3y4BTz6Ct+FZ7Z1OsTpXwmA==","_resolved":"/private/var/folders/4l/lb2f5pj1221bm7d89gh08fx80000gn/T/a398b3547a81486de46e4890505ff02c/aleclarson-tsrx-bun-plugin-preact-0.0.10.tgz","_from":"file:aleclarson-tsrx-bun-plugin-preact-0.0.10.tgz","_nodeVersion":"22.22.0","_npmVersion":"10.9.4","dist":{"integrity":"sha512-OmVGTXIjSI+zm+Nx9q0o+A+ng4eCHQuYFpSgP4GFwUcbpJqw8OhmEFSSEKlqCCT3y4BTz6Ct+FZ7Z1OsTpXwmA==","shasum":"3961738220df2c62ccfab394e11c6df308ae9907","tarball":"https://registry.npmjs.org/@aleclarson/tsrx-bun-plugin-preact/-/tsrx-bun-plugin-preact-0.0.10.tgz","fileCount":5,"unpackedSize":6997,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCICEdPvD+PhL61MDCwXQ7kXLOfA0vnFjsvNsBwmybv8zrAiAT2Yq8w/wY9A9Nwoj8s2DFeriCr7QkEFbPwn4yKvUGoQ=="}]},"_npmUser":{"name":"aleclarson","email":"alec.stanford.larson@gmail.com"},"directories":{},"maintainers":[{"name":"aleclarson","email":"alec.stanford.larson@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/tsrx-bun-plugin-preact_0.0.10_1777346454237_0.02019572218415755"},"_hasShrinkwrap":false}},"time":{"created":"2026-04-28T03:20:54.107Z","0.0.10":"2026-04-28T03:20:54.366Z","modified":"2026-04-28T03:20:54.574Z"},"maintainers":[{"name":"aleclarson","email":"alec.stanford.larson@gmail.com"}],"description":"Bun plugin for @tsrx/preact (.tsrx modules)","homepage":"https://github.com/Ripple-TS/ripple#readme","repository":{"type":"git","url":"git+https://github.com/Ripple-TS/ripple.git","directory":"packages/bun-plugin-preact"},"author":{"name":"Dominic Gannaway"},"bugs":{"url":"https://github.com/Ripple-TS/ripple/issues"},"license":"MIT","readme":"# @tsrx/bun-plugin-preact\n\nBun plugin for compiling `@tsrx/preact` `.tsrx` files.\n\n## Installation\n\n```bash\npnpm add -D @tsrx/bun-plugin-preact\n```\n\n## Usage\n\n```ts\nimport tsrxPreact from '@tsrx/bun-plugin-preact';\n\nawait Bun.build({\n  entrypoints: ['./src/App.tsrx'],\n  outdir: './dist',\n  target: 'browser',\n  plugins: [tsrxPreact()],\n});\n```\n\nThe plugin compiles `.tsrx` modules with `@tsrx/preact`, runs Bun's TSX transform\nfor Preact's automatic JSX runtime, and emits component-local `<style>` blocks as\nvirtual CSS modules.\n\nFor `bun:test`, register it from a preload:\n\n```ts\nimport tsrxPreact from '@tsrx/bun-plugin-preact';\n\nBun.plugin(tsrxPreact());\n```\n\n## Options\n\n- `jsxImportSource`: automatic JSX runtime import source (default: `'preact'`).\n- `suspenseSource`: module used by the compiler for Suspense imports.\n- `emitCss`: whether to emit virtual CSS imports (default: `true`).\n- `include`, `exclude`: regex filters for source files.\n","readmeFilename":"README.md","_rev":"1-ee85f2a1045c465cc574ee14520efc32"}