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): PluginParameters:
| Parameter | Type | Description |
|---|---|---|
isProductionBuild | boolean | Whether the build is a production build. |
Returns: Plugin — The esbuild plugin.