From c86335bd41f59d255a4979498dba432d1167bbbc Mon Sep 17 00:00:00 2001 From: kazuma1989 Date: Mon, 1 Aug 2022 11:28:31 +0900 Subject: [PATCH] Remove pluginutils from dependencies because `createFilter` util is exposed from Vite v3. https://github.com/vitejs/vite/pull/8562 --- packages/builder-vite/package.json | 1 - packages/builder-vite/plugins/react-docgen.ts | 2 +- yarn.lock | 1 - 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/builder-vite/package.json b/packages/builder-vite/package.json index bd314d05..086d7f0c 100644 --- a/packages/builder-vite/package.json +++ b/packages/builder-vite/package.json @@ -14,7 +14,6 @@ "homepage": "https://github.com/storybookjs/builder-vite/#readme", "dependencies": { "@joshwooding/vite-plugin-react-docgen-typescript": "0.0.5", - "@rollup/pluginutils": "^4.2.1", "@storybook/core-common": "^6.4.3", "@storybook/mdx1-csf": "^0.0.4", "@storybook/node-logger": "^6.4.3", diff --git a/packages/builder-vite/plugins/react-docgen.ts b/packages/builder-vite/plugins/react-docgen.ts index d78dca1e..29e4c615 100644 --- a/packages/builder-vite/plugins/react-docgen.ts +++ b/packages/builder-vite/plugins/react-docgen.ts @@ -1,5 +1,4 @@ import path from 'path'; -import { createFilter } from '@rollup/pluginutils'; import { parse, handlers as docgenHandlers, @@ -9,6 +8,7 @@ import { import type { DocumentationObject } from 'react-docgen/lib/Documentation'; import MagicString from 'magic-string'; import type { Plugin } from 'vite'; +import { createFilter } from 'vite'; import actualNameHandler from './docgen-handlers/actualNameHandler'; type DocObj = DocumentationObject & { actualName: string }; diff --git a/yarn.lock b/yarn.lock index 0ca7bc94..27af3021 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2873,7 +2873,6 @@ __metadata: resolution: "@storybook/builder-vite@workspace:packages/builder-vite" dependencies: "@joshwooding/vite-plugin-react-docgen-typescript": 0.0.5 - "@rollup/pluginutils": ^4.2.1 "@storybook/core-common": ^6.4.3 "@storybook/mdx1-csf": ^0.0.4 "@storybook/mdx2-csf": ^0.0.3