From 2e95b7b20086f3d84f31e04e304c7d98d9c6125b Mon Sep 17 00:00:00 2001 From: Michael Shilman Date: Tue, 18 May 2021 09:33:39 +0800 Subject: [PATCH] Fix deepscan --- lib/csf-tools/src/CsfFile.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/csf-tools/src/CsfFile.ts b/lib/csf-tools/src/CsfFile.ts index 11a8669ef16..d198a7084e4 100644 --- a/lib/csf-tools/src/CsfFile.ts +++ b/lib/csf-tools/src/CsfFile.ts @@ -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;