Skip to content

0.0.15

Choose a tag to compare

@hanielu hanielu released this 24 Jul 23:13
· 12 commits to main since this release

πŸš€ 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 fenceStart and fenceEnd options 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";