Browse documentation

inline

Bundles build input for server-side tooling.

Table of contents

Category

Value

Import

js
import { inline } from "valyrian.js/node";

Public signature

ts
(file: string | { raw: string; map?: string | null; file: string; }, options?: Record<string, any>): Promise<{ raw: string; map: string | null; file: string; }>

Parameters

ts
file: string | { raw: string; map?: string | null; file: string; }, options?: Record<string, any>

Result

ts
Promise<{ raw: string; map: string | null; file: string; }>

Observable effects

Accepts a file path or an object with raw source and file metadata. Options control type validation, noValidate, source maps and CSS handling before it resolves { raw, map, file }.

Errors

Rejects unknown file types and transformation errors.