mirror of
https://github.com/hanzoai/sentinel.git
synced 2026-10-30 14:49:14 +00:00
8 lines
296 B
TypeScript
8 lines
296 B
TypeScript
export default function storiesContext() {
|
|
const context = require.context('sentry', true, /\.stories.tsx$/, 'lazy');
|
|
return {
|
|
files: () => context.keys().map(file => file.replace(/^\.\//, 'app/')),
|
|
importStory: (filename: string) => context(filename.replace(/^app\//, './')),
|
|
};
|
|
}
|