Skip to content

limitMainJsLineLength

Breaks the long lines of the main.js a production build wrote, through limitLineLength.

Import:

import { limitMainJsLineLength } from '@mnaoumov/obsidian-dev-toolkit/bundlers/obsidian-plugin-line-limit';

Signature:

function limitMainJsLineLength(params: LimitMainJsLineLengthParams): Promise<void>

Parameters:

Parameter Type Description
params LimitMainJsLineLengthParams The LimitMainJsLineLengthParams, which a build context satisfies.

Returns: Promise<void> — A Promise that resolves once the file is rewritten, or found not to need it.


Links to this page: