Skip to content

Commit 9084f34

Browse files
committed
Add polyfill for new version of neat-csv
1 parent 166a9e6 commit 9084f34

File tree

3 files changed

+743
-2
lines changed

3 files changed

+743
-2
lines changed

.storybook/main.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import type {StorybookConfig} from '@storybook/web-components-webpack5';
22
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
3+
const NodePolyfillPlugin = require('node-polyfill-webpack-plugin');
34

45
const config: StorybookConfig = {
56
stories: ['../src/**/*.stories.@(ts|tsx)'],
@@ -28,7 +29,7 @@ const config: StorybookConfig = {
2829
const mergedConfig = {
2930
...config,
3031
module: {...config.module, rules: projectConfig.module.rules},
31-
plugins: [...config.plugins, new MiniCssExtractPlugin()],
32+
plugins: [...config.plugins, new MiniCssExtractPlugin(), new NodePolyfillPlugin()],
3233
resolve: {
3334
...config.resolve,
3435
alias: {

0 commit comments

Comments
 (0)