bundleInlineWorker
Bundles a worker and its imports for a Blob-backed browser Worker, without emitting a sibling file. Node builtins and Obsidian imports are unavailable in workers and fail resolution.
Import:
import { bundleInlineWorker } from '@mnaoumov/obsidian-dev-toolkit/bundlers/inline-worker';Signature:
function bundleInlineWorker(filePath: string): Promise<InlineWorkerModule>Parameters:
| Parameter | Type | Description |
|---|---|---|
filePath |
string | The absolute path of the worker entry point. |
Returns: Promise<InlineWorkerModule> — The module and its watched inputs.