Fix deepscan

This commit is contained in:
Michael Shilman 2021-05-18 09:33:39 +08:00
parent 7bce1ae3a6
commit 2e95b7b200

View File

@ -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;