@vladi-j/builder-react
v8.0.12
Published
Wrapper for @builder.io/react without isolated-vm dependency
Readme
Builder.io React SDK Wrapper
A lightweight wrapper for @builder.io/react that resolves the installation issues with the isolated-vm dependency.
Why this exists
The official @builder.io/react package depends on isolated-vm which can cause installation problems on some environments because it requires native compilation. This wrapper package provides the same functionality but without the problematic dependency.
Installation
npm install @your-org/builder-react
# or
yarn add @your-org/builder-reactUsage
Use it exactly the same way as you would use @builder.io/react:
// Instead of import { BuilderComponent } from '@builder.io/react'
import { BuilderComponent } from '@your-org/builder-react'
function MyComponent() {
return (
<BuilderComponent
model="page"
apiKey="YOUR_API_KEY"
/>
)
}How it works
This package simply re-exports all functionality from the official @builder.io/react package but replaces the troublesome isolated-vm dependency with an empty mock implementation. This dependency is only used for specific server-side evaluation features that most projects don't need.
Version
This package version mirrors the underlying @builder.io/react version to make it easy to keep track of compatibility.
License
MIT
