Skip to content

v0.4.0

Compare
Choose a tag to compare
@nvlang nvlang released this 18 Jul 05:21
· 5 commits to main since this release
2b81d16

Features

  • Wrap variables defined in frontmatter inside a metadata object and export that from within a <script context="module"> block. This enables us to now use tools like Vite's import.meta.glob('...', { import: 'metadata', eager: true }) to e.g. help render a list of available routes with whatever metadata was defined.

Fixes

  • SvelTeX is now conscious of the fact that the script preprocessor might run twice on the same file, given that Svelte files may include one <script> tag and one <script context="module"> tag. Previously, doing this could lead to problematic behavior with SvelTeX, e.g., importing a component twice, causing an error.

Full Changelog: v0.3.2...v0.4.0