Skip to content

svelteWrapperPlugin

Wraps the esbuild-svelte plugin to ensure that the correct format is used.

Import:

import { svelteWrapperPlugin } from 'obsidian-dev-utils/script-utils/bundlers/esbuild-impl/svelte-wrapper-plugin';

Signature:

function svelteWrapperPlugin(isProductionBuild: boolean): Plugin

Parameters:

ParameterTypeDescription
isProductionBuildbooleanWhether the build is a production build.

Returns: Plugin — The esbuild plugin.