Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9cde6e6

Browse files
chore: remove turbosnap plugin (#19341)
Turbosnap plugin is included by default in Storybook 8, so we can removeit from our configuration.> Found 'rollup-plugin-turbosnap' which is now included by default inStorybook 8.Removing from your plugins list. Ensure you pass `--stats-json` togenerate stats.> For more information, seehttps://github.com/storybookjs/storybook/blob/next/MIGRATION.md#turbosnap-vite-plugin-is-no-longer-needed
1 parent4926410 commit9cde6e6

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-
importturbosnapfrom"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-
asyncviteFinal(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-
returnconfig;
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 aboutcustomizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp