mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
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
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
import turbosnap from "vite-plugin-turbosnap";
|
||||
|
||||
module.exports = {
|
||||
stories: ["../src/**/*.stories.tsx"],
|
||||
|
||||
@@ -17,17 +15,4 @@ module.exports = {
|
||||
name: "@storybook/react-vite",
|
||||
options: {},
|
||||
},
|
||||
|
||||
async viteFinal(config, { configType }) {
|
||||
config.plugins = config.plugins || [];
|
||||
if (configType === "PRODUCTION") {
|
||||
config.plugins.push(
|
||||
turbosnap({
|
||||
rootDir: config.root || "",
|
||||
}),
|
||||
);
|
||||
}
|
||||
config.server.allowedHosts = [".coder"];
|
||||
return config;
|
||||
},
|
||||
};
|
||||
|
||||
+1
-2
@@ -183,8 +183,7 @@
|
||||
"ts-proto": "1.164.0",
|
||||
"typescript": "5.6.3",
|
||||
"vite": "6.3.5",
|
||||
"vite-plugin-checker": "0.9.3",
|
||||
"vite-plugin-turbosnap": "1.0.3"
|
||||
"vite-plugin-checker": "0.9.3"
|
||||
},
|
||||
"browserslist": ["chrome 110", "firefox 111", "safari 16.0"],
|
||||
"resolutions": {
|
||||
|
||||
Generated
-8
@@ -459,9 +459,6 @@ importers:
|
||||
vite-plugin-checker:
|
||||
specifier: 0.9.3
|
||||
version: 0.9.3(@biomejs/biome@1.9.4)(eslint@8.52.0)(optionator@0.9.3)(typescript@5.6.3)(vite@6.3.5(@types/node@20.17.16)(jiti@2.4.2)(yaml@2.7.0))
|
||||
vite-plugin-turbosnap:
|
||||
specifier: 1.0.3
|
||||
version: 1.0.3
|
||||
|
||||
packages:
|
||||
|
||||
@@ -6084,9 +6081,6 @@ packages:
|
||||
vue-tsc:
|
||||
optional: true
|
||||
|
||||
vite-plugin-turbosnap@1.0.3:
|
||||
resolution: {integrity: sha512-p4D8CFVhZS412SyQX125qxyzOgIFouwOcvjZWk6bQbNPR1wtaEzFT6jZxAjf1dejlGqa6fqHcuCvQea6EWUkUA==, tarball: https://registry.npmjs.org/vite-plugin-turbosnap/-/vite-plugin-turbosnap-1.0.3.tgz}
|
||||
|
||||
vite@6.3.5:
|
||||
resolution: {integrity: sha512-cZn6NDFE7wdTpINgs++ZJ4N49W2vRp8LCKrn3Ob1kYNtOo21vfDoaV5GzBfLU4MovSAB8uNRm4jgzVQZ+mBzPQ==, tarball: https://registry.npmjs.org/vite/-/vite-6.3.5.tgz}
|
||||
engines: {node: ^18.0.0 || ^20.0.0 || >=22.0.0}
|
||||
@@ -12766,8 +12760,6 @@ snapshots:
|
||||
optionator: 0.9.3
|
||||
typescript: 5.6.3
|
||||
|
||||
vite-plugin-turbosnap@1.0.3: {}
|
||||
|
||||
vite@6.3.5(@types/node@20.17.16)(jiti@2.4.2)(yaml@2.7.0):
|
||||
dependencies:
|
||||
esbuild: 0.25.3
|
||||
|
||||
Reference in New Issue
Block a user