0.0.15
π Plugin Refinements and Simplification
This release focuses on improving the developer experience by simplifying the plugin's API. We've consolidated the import and global fences into a single, more intuitive definitions fence.
β¨ Changes
- Unified Definitions Fence: Gone are the separate
/* svelte:imports */and/* svelte:globals */fences. Now, you can declare all your imports, variables, and component definitions within a single/* svelte:definitions */block. This streamlines the process of providing context to your inline components. - Simplified Configuration: The plugin options have been updated to reflect this change. The
fenceStartandfenceEndoptions now control the delimiters for the new unified fence.
migrating from previous versions
Updating to this new version is straightforward. Simply combine the content of your old import and global fences into the new definitions fence.
Before:
/* svelte:imports */
import { tick } from "svelte";
/* svelte:globals */
const name = "World";After:
/* svelte:definitions */
import { tick } from "svelte";
const name = "World";