Skip to content

Build of Web Components for library authors #420

@aralroca

Description

@aralroca

Brisa is more than a framework. It is also designed so that Web Components library developers can easily write with JSX and signals and compile it to generate 2 files:

  • web-component.client.js: It can be loaded with Vanillajs or any framework.
  • web-component.server.js: You can load it with Node.js or Bun to SSR the web component easily and adapt it to any framework, without needing JSX-runtime.

Proposal:

brisa build --web-component path/to/web-component.tsx

Also possible without installing brisa (using bunx):

bunx brisa build --web-component path/to/web-component.tsx

For more than one web component:

brisa build --web-component path/to/web-component.tsx --web-component path/to/web-component2.tsx

Besides, also the integration with Brisa of these files has to be easy to consume external libraries of Web Components, supporting:

  • SSR
  • Types

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions