mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-02 05:03:44 +08:00
Fix deepscan
This commit is contained in:
parent
7bce1ae3a6
commit
2e95b7b200
@ -7,8 +7,6 @@ import * as t from '@babel/types';
|
||||
import traverse, { Node } from '@babel/traverse';
|
||||
import { toId, isExportStory } from '@storybook/csf';
|
||||
|
||||
const logger = console;
|
||||
|
||||
interface Meta {
|
||||
title?: string;
|
||||
includeStories?: string[] | RegExp;
|
||||
@ -22,7 +20,6 @@ interface Story {
|
||||
}
|
||||
|
||||
function parseIncludeExclude(prop: Node) {
|
||||
const { code } = generate(prop, {});
|
||||
if (t.isArrayExpression(prop)) {
|
||||
return prop.elements.map((e) => {
|
||||
if (t.isStringLiteral(e)) return e.value;
|
||||
|
Loading…
x
Reference in New Issue
Block a user