reactbuilder

package
v1.0.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 1, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateClientBuildContents

func GenerateClientBuildContents(imports []string, filePath string, useLayout bool) (string, error)

func GenerateClientSPABuildContents

func GenerateClientSPABuildContents(imports []string, appPath string, mode string) (string, error)

GenerateClientSPABuildContents generates client SPA app build mode: "router" uses hydrateRoot with BrowserRouter, "replace" uses createRoot (backward compatible)

func GenerateServerBuildContents

func GenerateServerBuildContents(imports []string, filePath string, useLayout bool) (string, error)

func GenerateServerSPABuildContents

func GenerateServerSPABuildContents(imports []string, appPath string, mode string, frontendDir string) (string, error)

GenerateServerSPABuildContents generates server build for SPA apps mode: "router" uses StaticRouter for true hydration, "replace" uses page component rendering

Types

type BuildResult

type BuildResult struct {
	JS           string
	CSS          string
	Dependencies []string
}

func BuildClient

func BuildClient(buildContents, frontendDir, assetRoute string, minify bool) (BuildResult, error)

func BuildServer

func BuildServer(buildContents, frontendDir, assetRoute string) (BuildResult, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL