bitovi / bitovi/react-to-web-component

Deploy to vanilla js file?

Open
#227 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
944
Forks
52
PR merge metrics
No merged PRs in 30d

Description

I would like to use the output of this in another project without adding react as a dependency to it.
Is it possible to have it output the generated webcomponent class sourcecode as a string - non minified?

I want to write that to a vanilla js file (myWebcomponent.js) and have that in a dist folder that can be used by anything without react?

I am surprised we dont have an option that outputs it to be deployed as part of a build script here
https://github.com/bitovi/react-to-web-component/blob/main/packages/core/src/core.ts#L219

Would this be a welcome feature? Imagine being able to preview the generated web component code in real time too - would improve your demo site :)

Contributor guide

No contributing guide indexed for this repository

Research direction

Read packages/core/src/core.ts around line 219 to understand the current output path. Define the build-time API and output requirements for non-minified standalone source, then verify that the generated file can be consumed without React.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
build-system, frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.