ci: Fix CI issues after rspack migration

This commit is contained in:
deytenit committed 2026-02-13 00:20:45 +03:00
1 parent 4628c043ce
commit 9ed7409dc8
16 files changed
+375 -122

No files matched your search

+22 -1
View File
@@ -1,4 +1,5 @@
import path from 'path';
import { pluginBabel } from '@rsbuild/plugin-babel';
import type { StorybookConfig } from 'storybook-react-rsbuild';
const config: StorybookConfig = {
@@ -22,8 +23,28 @@ const config: StorybookConfig = {
'@ermnvldmr/stl': path.resolve(__dirname, '../../../packages/stl/src'),
'@ermnvldmr/ui': path.resolve(__dirname, '../../../packages/ui/src'),
};
// Add Babel plugin with istanbul for coverage
config.plugins = config.plugins || [];
config.plugins.push(
pluginBabel({
include: /\.(?:jsx|tsx)$/,
exclude: /[\\/]node_modules[\\/]/,
babelLoaderOptions: (opts) => {
opts.plugins = opts.plugins || [];
opts.plugins.push([
'babel-plugin-istanbul',
{
exclude: ['**/*.stories.tsx', '**/*.test.tsx', 'node_modules/**'],
extension: ['.js', '.jsx', '.ts', '.tsx'],
},
]);
},
})
);
return config;
},
};
export default config;
export default config;