[GH-ISSUE #345] Export solid plugin properly #859

Closed
opened 2026-03-14 08:50:34 +03:00 by kerem · 3 comments
Owner

Originally created by @ericc-ch on GitHub (Nov 25, 2025).
Original GitHub issue: https://github.com/anomalyco/opentui/issues/345

Define the export properly for solid plugin in package.json, so instead of

import solidPlugin from "./node_modules/@opentui/solid/scripts/solid-plugin"

await Bun.build({
  entrypoints: ["./index.tsx"],
  target: "bun",
  outdir: "./build",
  plugins: [solidPlugin],
  compile: {
    target: "bun-darwin-arm64",
    outfile: "app-macos",
  },
})

We can do

import solidPlugin from "@opentui/solid/plugin"
// or
import solidPlugin from "@opentui/solid/bun-plugin"

await Bun.build({
  entrypoints: ["./index.tsx"],
  target: "bun",
  outdir: "./build",
  plugins: [solidPlugin],
  compile: {
    target: "bun-darwin-arm64",
    outfile: "app-macos",
  },
})

Would be a nice qol improvement

Is there anything that prevents this? I'm genuinely curious because it seems easy
I'll try it and if it is then I'll open a PR later :)

Originally created by @ericc-ch on GitHub (Nov 25, 2025). Original GitHub issue: https://github.com/anomalyco/opentui/issues/345 Define the export properly for solid plugin in package.json, so instead of ```typescript import solidPlugin from "./node_modules/@opentui/solid/scripts/solid-plugin" await Bun.build({ entrypoints: ["./index.tsx"], target: "bun", outdir: "./build", plugins: [solidPlugin], compile: { target: "bun-darwin-arm64", outfile: "app-macos", }, }) ``` We can do ```typescript import solidPlugin from "@opentui/solid/plugin" // or import solidPlugin from "@opentui/solid/bun-plugin" await Bun.build({ entrypoints: ["./index.tsx"], target: "bun", outdir: "./build", plugins: [solidPlugin], compile: { target: "bun-darwin-arm64", outfile: "app-macos", }, }) ``` Would be a nice qol improvement Is there anything that prevents this? I'm genuinely curious because it seems easy I'll try it and if it is then I'll open a PR later :)
kerem closed this issue 2026-03-14 08:50:39 +03:00
Author
Owner

@kommander commented on GitHub (Nov 26, 2025):

Should be totally possible to export an entrypoint for the plugin. I don't see anything blocking that, @Adictya ?

<!-- gh-comment-id:3580396002 --> @kommander commented on GitHub (Nov 26, 2025): Should be totally possible to export an entrypoint for the plugin. I don't see anything blocking that, @Adictya ?
Author
Owner

@Adictya commented on GitHub (Nov 26, 2025):

I don't see anything blocking that, @Adictya ?

Yup nothing blocking it, go ahead @ericc-ch

import solidPlugin from "@opentui/solid/bun-plugin" sounds good

<!-- gh-comment-id:3580415091 --> @Adictya commented on GitHub (Nov 26, 2025): > I don't see anything blocking that, @Adictya ? Yup nothing blocking it, go ahead @ericc-ch `import solidPlugin from "@opentui/solid/bun-plugin"` sounds good
Author
Owner

@ericc-ch commented on GitHub (Nov 26, 2025):

Done! Didn't realize it was literally just one line lol

<!-- gh-comment-id:3582179849 --> @ericc-ch commented on GitHub (Nov 26, 2025): Done! Didn't realize it was literally just one line lol
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/opentui#859
No description provided.