Skip to content

Commit 9cde6e6

Browse files
chore: remove turbosnap plugin (#19341)
Turbosnap plugin is included by default in Storybook 8, so we can remove it from our configuration. > Found 'rollup-plugin-turbosnap' which is now included by default in Storybook 8. Removing from your plugins list. Ensure you pass `--stats-json` to generate stats. > For more information, see https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#turbosnap-vite-plugin-is-no-longer-needed
1 parent 4926410 commit 9cde6e6

File tree

3 files changed

+1
-25
lines changed

3 files changed

+1
-25
lines changed

site/.storybook/main.js

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import turbosnap from "vite-plugin-turbosnap";
2-
31
module.exports = {
42
stories: ["../src/**/*.stories.tsx"],
53

@@ -17,17 +15,4 @@ module.exports = {
1715
name: "@storybook/react-vite",
1816
options: {},
1917
},
20-
21-
async viteFinal(config, { configType }) {
22-
config.plugins = config.plugins || [];
23-
if (configType === "PRODUCTION") {
24-
config.plugins.push(
25-
turbosnap({
26-
rootDir: config.root || "",
27-
}),
28-
);
29-
}
30-
config.server.allowedHosts = [".coder"];
31-
return config;
32-
},
3318
};

site/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,8 +183,7 @@
183183
"ts-proto": "1.164.0",
184184
"typescript": "5.6.3",
185185
"vite": "6.3.5",
186-
"vite-plugin-checker": "0.9.3",
187-
"vite-plugin-turbosnap": "1.0.3"
186+
"vite-plugin-checker": "0.9.3"
188187
},
189188
"browserslist": ["chrome 110", "firefox 111", "safari 16.0"],
190189
"resolutions": {

site/pnpm-lock.yaml

Lines changed: 0 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy