assertMainJsLoadsOnMobile
Asserts that a production main.js loads on Obsidian mobile, unless the plugin’s built manifest.json says it is desktop-only, the check is turned off, or the build is a development one. Every bundler adapter calls it once the output folder is complete.
Import:
import { assertMainJsLoadsOnMobile } from '@mnaoumov/obsidian-dev-toolkit/bundlers/obsidian-plugin-mobile-load-check';Signature:
function assertMainJsLoadsOnMobile(params: AssertMainJsLoadsOnMobileParams): Promise<void>Parameters:
| Parameter | Type | Description |
|---|---|---|
params |
AssertMainJsLoadsOnMobileParams | The AssertMainJsLoadsOnMobileParams. |
Returns: Promise<void> — A Promise that resolves once the bundle is checked, or found not to need it.
Links to this page: