Skip to content

Commit

Permalink
Merge pull request #247 from storybookjs/remove-client-logger-usage
Browse files Browse the repository at this point in the history
refactor: Stop using @storybook/client-logger
  • Loading branch information
JReinhold authored Dec 18, 2024
2 parents c5692e0 + d029861 commit b5a0c34
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 15 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@
"@storybook/addon-actions": "^8.0.0",
"@storybook/addon-essentials": "^8.0.0",
"@storybook/addon-interactions": "^8.0.0",
"@storybook/client-logger": "^8.0.0",
"@storybook/eslint-config-storybook": "^4.0.0",
"@storybook/preview-api": "^8.0.0",
"@storybook/svelte": "^8.0.0",
Expand Down
12 changes: 0 additions & 12 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions src/runtime/create-runtime-stories.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/* eslint-env browser */
import { logger } from '@storybook/client-logger';
import type { StoryObj } from '@storybook/svelte';
import { mount, unmount, type Component } from 'svelte';

Expand Down Expand Up @@ -42,7 +41,7 @@ export const createRuntimeStories = (Stories: Component, meta: Meta<Cmp>) => {

unmount(context);
} catch (e: any) {
logger.error(`Error in mounting stories ${e.toString()}`, e);
console.error(`Error in mounting stories ${e.toString()}`, e);
}

const stories: Record<string, StoryObj<typeof StoryRenderer>> = {};
Expand Down

0 comments on commit b5a0c34

Please sign in to comment.