diff --git a/lib/builder-webpack4/src/preview/iframe-webpack.config.ts b/lib/builder-webpack4/src/preview/iframe-webpack.config.ts index 596f5174bf5..8e1d13e7491 100644 --- a/lib/builder-webpack4/src/preview/iframe-webpack.config.ts +++ b/lib/builder-webpack4/src/preview/iframe-webpack.config.ts @@ -22,7 +22,6 @@ import { interpolate, nodeModulesPaths, Options, - NormalizedStoriesSpecifier, toImportFn, normalizeStories, loadPreviewOrConfigFile, diff --git a/lib/builder-webpack5/src/preview/iframe-webpack.config.ts b/lib/builder-webpack5/src/preview/iframe-webpack.config.ts index b1b2c1ea5d7..466071c3f60 100644 --- a/lib/builder-webpack5/src/preview/iframe-webpack.config.ts +++ b/lib/builder-webpack5/src/preview/iframe-webpack.config.ts @@ -19,7 +19,6 @@ import { interpolate, Options, hasDotenv, - NormalizedStoriesSpecifier, toImportFn, normalizeStories, readTemplate, diff --git a/lib/core-common/src/utils/normalize-stories.ts b/lib/core-common/src/utils/normalize-stories.ts index c0bc650d8f7..731a76e6aaf 100644 --- a/lib/core-common/src/utils/normalize-stories.ts +++ b/lib/core-common/src/utils/normalize-stories.ts @@ -89,7 +89,7 @@ export const normalizeStoriesEntry = ( // At this stage `directory` is relative to `main.js` (the config dir) // We want to work relative to the working dir, so we transform it here. - const { directory: directoryRelativeToConfig, files: filesForOS } = specifierWithoutMatcher; + const { directory: directoryRelativeToConfig } = specifierWithoutMatcher; const absoluteDirectory = path.resolve(configDir, directoryRelativeToConfig); let directory = slash(path.relative(workingDir, absoluteDirectory));