Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions demo/.storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
check: true,
reactDocgen: 'react-docgen-typescript',
},
webpackFinal: (config) => {

Check warning on line 30 in demo/.storybook/main.ts

View workflow job for this annotation

GitHub Actions / Verify Files

'config' is already declared in the upper scope on line 15 column 7
config.plugins?.push(
new webpack.DefinePlugin({
__VERSION__: `'${pkg.version}-storybook'`,
Expand All @@ -37,12 +37,12 @@
}),
);

config.resolve ||= {};

Check warning on line 40 in demo/.storybook/main.ts

View workflow job for this annotation

GitHub Actions / Verify Files

Assignment to property of function parameter 'config'
config.resolve.alias ||= {};

Check warning on line 41 in demo/.storybook/main.ts

View workflow job for this annotation

GitHub Actions / Verify Files

Assignment to property of function parameter 'config'
config.resolve.fallback ||= {};

Check warning on line 42 in demo/.storybook/main.ts

View workflow job for this annotation

GitHub Actions / Verify Files

Assignment to property of function parameter 'config'

// Node.js polyfills for browser
config.resolve.fallback = {

Check warning on line 45 in demo/.storybook/main.ts

View workflow job for this annotation

GitHub Actions / Verify Files

Assignment to property of function parameter 'config'
...config.resolve.fallback,
fs: false,
path: require.resolve('path-browserify'),
Expand All @@ -50,19 +50,23 @@
process: require.resolve('process/browser'),
};

config.ignoreWarnings ||= [];

Check warning on line 53 in demo/.storybook/main.ts

View workflow job for this annotation

GitHub Actions / Verify Files

Assignment to property of function parameter 'config'
config.ignoreWarnings.push(/\.js\.map$/);
config.module ||= {};

Check warning on line 55 in demo/.storybook/main.ts

View workflow job for this annotation

GitHub Actions / Verify Files

Assignment to property of function parameter 'config'
config.module.rules ||= [];

Check warning on line 56 in demo/.storybook/main.ts

View workflow job for this annotation

GitHub Actions / Verify Files

Assignment to property of function parameter 'config'
config.module.rules.push({
test: /\.(js|css)\.map$/,
include: /node_modules/,
type: 'asset/resource' as const,
generator: {emit: false},
});
config.module.rules.push({
test: /\.html$/,
type: 'asset/source' as const,
});

config.watchOptions ||= {};

Check warning on line 68 in demo/.storybook/main.ts

View workflow job for this annotation

GitHub Actions / Verify Files

Assignment to property of function parameter 'config'
config.watchOptions.ignored = /node_modules([\\]+|\/)+(?!@gravity-ui\/markdown-editor)/;

Check warning on line 69 in demo/.storybook/main.ts

View workflow job for this annotation

GitHub Actions / Verify Files

Assignment to property of function parameter 'config'

return config;
},
Expand Down
Loading
Loading