From 1594d8d64753e9639cd31246628e9b642c9bb213 Mon Sep 17 00:00:00 2001 From: j3rem1e Date: Thu, 31 Aug 2023 23:41:39 +0200 Subject: [PATCH] Allow 'meta' to be exported as const from module script --- README.md | 15 ++-- src/parser/collect-stories.ts | 4 +- src/parser/extract-stories.test.ts | 26 +++++++ src/parser/extract-stories.ts | 106 +++++++++++++++++++--------- src/parser/svelte-stories-loader.ts | 7 +- src/plugins/vite-svelte-csf.ts | 4 +- stories/metaexport.stories.svelte | 35 +++++++++ 7 files changed, 153 insertions(+), 44 deletions(-) create mode 100644 stories/metaexport.stories.svelte diff --git a/README.md b/README.md index 4c3594c..c5eaf6b 100644 --- a/README.md +++ b/README.md @@ -14,19 +14,24 @@ It supports: ## Example ```svelte - + + - -