Skip to content

Commit

Permalink
Fix storybook webpack config
Browse files Browse the repository at this point in the history
  • Loading branch information
weltenwort committed Oct 9, 2024
1 parent c6d26db commit 782e0b9
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions packages/kbn-storybook/src/webpack.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,17 @@ export default ({ config: storybookConfig }: { config: Configuration }) => {
},
],
},
{
test: /node_modules\/@?xstate5\/.*\.js$/,
use: {
loader: 'babel-loader',
options: {
babelrc: false,
presets: [require.resolve('@kbn/babel-preset/webpack_preset')],
plugins: ['@babel/plugin-transform-logical-assignment-operators'],
},
},
},
],
},
plugins: [new IgnoreNotFoundExportPlugin()],
Expand Down

0 comments on commit 782e0b9

Please sign in to comment.