Skip to content

Commit

Permalink
Merge pull request #17875 from storybookjs/core-client
Browse files Browse the repository at this point in the history
Core: Avoid framework imports from core/client
  • Loading branch information
shilman committed Apr 6, 2022
2 parents 32419be + 2d5b3a3 commit 5698bd5
Show file tree
Hide file tree
Showing 12 changed files with 13 additions and 11 deletions.
2 changes: 1 addition & 1 deletion app/angular/src/client/preview/index.ts
@@ -1,6 +1,6 @@
/* eslint-disable prefer-destructuring */
import type { ClientStoryApi, Loadable } from '@storybook/addons';
import { start } from '@storybook/core/client';
import { start } from '@storybook/core';
import './globals';
import { renderToDOM, render } from './render';
import decorateStory from './decorateStory';
Expand Down
2 changes: 1 addition & 1 deletion app/ember/src/client/preview/index.ts
@@ -1,4 +1,4 @@
import { start } from '@storybook/core/client';
import { start } from '@storybook/core';

import './globals';
import { renderToDOM } from './render';
Expand Down
2 changes: 1 addition & 1 deletion app/html/src/client/preview/index.ts
@@ -1,5 +1,5 @@
/* eslint-disable prefer-destructuring */
import { start } from '@storybook/core/client';
import { start } from '@storybook/core';
import type { ClientStoryApi, Loadable } from '@storybook/addons';
import { HtmlFramework } from './types-6-0';

Expand Down
2 changes: 1 addition & 1 deletion app/preact/src/client/preview/index.ts
@@ -1,5 +1,5 @@
/* eslint-disable prefer-destructuring */
import { start } from '@storybook/core/client';
import { start } from '@storybook/core';
import type { ClientStoryApi, Loadable } from '@storybook/addons';

import './globals';
Expand Down
2 changes: 1 addition & 1 deletion app/react/src/client/preview/index.tsx
@@ -1,5 +1,5 @@
/* eslint-disable prefer-destructuring */
import { start } from '@storybook/core/client';
import { start } from '@storybook/core';
import { ClientStoryApi, Loadable } from '@storybook/addons';

import './globals';
Expand Down
2 changes: 1 addition & 1 deletion app/server/src/client/preview/index.ts
@@ -1,4 +1,4 @@
import { start } from '@storybook/core/client';
import { start } from '@storybook/core';
import type { ClientStoryApi, Loadable } from '@storybook/addons';

import './globals';
Expand Down
2 changes: 1 addition & 1 deletion app/svelte/src/client/preview/index.ts
@@ -1,4 +1,4 @@
import { start } from '@storybook/core/client';
import { start } from '@storybook/core';
import { decorateStory } from './decorators';

import './globals';
Expand Down
2 changes: 1 addition & 1 deletion app/vue/src/client/preview/index.ts
@@ -1,5 +1,5 @@
/* eslint-disable prefer-destructuring */
import { start } from '@storybook/core/client';
import { start } from '@storybook/core';
import type { ClientStoryApi, Loadable } from '@storybook/addons';

import './globals';
Expand Down
2 changes: 1 addition & 1 deletion app/vue3/src/client/preview/index.ts
@@ -1,5 +1,5 @@
import type { App } from 'vue';
import { start } from '@storybook/core/client';
import { start } from '@storybook/core';
import type { ClientStoryApi, Loadable } from '@storybook/addons';

import './globals';
Expand Down
2 changes: 1 addition & 1 deletion app/web-components/src/client/preview/index.ts
@@ -1,5 +1,5 @@
/* eslint-disable prefer-destructuring */
import { start } from '@storybook/core/client';
import { start } from '@storybook/core';
import type { ClientStoryApi, Loadable } from '@storybook/addons';

import './globals';
Expand Down
2 changes: 1 addition & 1 deletion docs/snippets/common/storybook-client-preview.ts.mdx
@@ -1,7 +1,7 @@
```ts
// your-framework/src/client/preview/index.ts

import { start } from '@storybook/core/client';
import { start } from '@storybook/core';

import './globals';

Expand Down
2 changes: 2 additions & 0 deletions lib/core/client.js
@@ -1 +1,3 @@
// @storybook/core was split into core-client and core-server. This file is for backwards-compat.
// TODO: remove in 7.0
module.exports = require('./dist/esm/index');

0 comments on commit 5698bd5

Please sign in to comment.