Skip to content

Commit

Permalink
[storybook] Ignore TS-related HMR warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
clintandrewhall committed Jun 29, 2021
1 parent da13795 commit 21b698e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/kbn-storybook/webpack.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import { resolve } from 'path';
import { Configuration, Stats } from 'webpack';
import webpackMerge from 'webpack-merge';
import { REPO_ROOT } from './lib/constants';
import { IgnoreNotFoundExportPlugin } from './ignoreNotFoundExportPlugin';

const stats = {
...Stats.presetToOptions('minimal'),
Expand Down Expand Up @@ -70,6 +71,7 @@ export default function ({ config: storybookConfig }: { config: Configuration })
},
],
},
plugins: [new IgnoreNotFoundExportPlugin()],
resolve: {
extensions: ['.js', '.ts', '.tsx', '.json'],
mainFields: ['browser', 'main'],
Expand Down

0 comments on commit 21b698e

Please sign in to comment.