From 33c64cbf5cac4112c884f3a3f169fa005af26f3d Mon Sep 17 00:00:00 2001 From: Remix Run Bot Date: Tue, 31 Oct 2023 16:10:41 +0000 Subject: [PATCH] chore: format --- docs/discussion/hot-module-replacement.md | 2 +- docs/future/vite.md | 6 ++++-- templates/unstable-vite-express/server.mjs | 4 ++-- templates/unstable-vite-express/vite.config.ts | 2 +- templates/unstable-vite/vite.config.ts | 2 +- 5 files changed, 9 insertions(+), 7 deletions(-) diff --git a/docs/discussion/hot-module-replacement.md b/docs/discussion/hot-module-replacement.md index 107a0398598..c109396795d 100644 --- a/docs/discussion/hot-module-replacement.md +++ b/docs/discussion/hot-module-replacement.md @@ -169,7 +169,7 @@ export default Component() { } ``` -then React Fast Refresh will preserve state for the ``, though you may need to use [component keys][component-keys] as described in the next section if the stateful element (e.g. ``) is a sibling of the changed element. +then React Fast Refresh will preserve state for the ``, though you may need to use \[component keys]\[component-keys] as described in the next section if the stateful element (e.g. ``) is a sibling of the changed element. ### Component Keys diff --git a/docs/future/vite.md b/docs/future/vite.md index ca722ae2894..a44274a38b4 100644 --- a/docs/future/vite.md +++ b/docs/future/vite.md @@ -97,7 +97,7 @@ export default defineConfig({ }); ``` -The subset of [supported Remix config options](#configuration) should be passed directly to the plugin: +The subset of [supported Remix config options][supported-remix-config-options] should be passed directly to the plugin: ```ts filename=vite.config.ts export default defineConfig({ @@ -383,7 +383,7 @@ export default { 👉 **Convert Tailwind CSS import to a side effect** -If you haven't already, be sure to [convert your CSS imports to side effects.](#fix-up-css-imports) +If you haven't already, be sure to [convert your CSS imports to side effects.][convert-your-css-imports-to-side-effects] ```diff filename=app/dashboard/route.tsx // Don't export as a link descriptor: @@ -668,3 +668,5 @@ We're definitely late to the Vite party, but we're excited to be here now! [vite-css]: https://vitejs.dev/guide/features.html#css [vite-url-imports]: https://vitejs.dev/guide/assets.html#explicit-url-imports [vite-css-url-issue]: https://github.com/remix-run/remix/issues/7786 +[supported-remix-config-options]: #configuration +[convert-your-css-imports-to-side-effects]: #fix-up-css-imports diff --git a/templates/unstable-vite-express/server.mjs b/templates/unstable-vite-express/server.mjs index 94ae30fd67c..bef73042b3b 100644 --- a/templates/unstable-vite-express/server.mjs +++ b/templates/unstable-vite-express/server.mjs @@ -21,7 +21,7 @@ if (vite) { } else { app.use( "/build", - express.static("public/build", { immutable: true, maxAge: "1y" }), + express.static("public/build", { immutable: true, maxAge: "1y" }) ); } app.use(express.static("public", { maxAge: "1h" })); @@ -33,7 +33,7 @@ app.all( build: vite ? () => unstable_loadViteServerBuild(vite) : await import("./build/index.js"), - }), + }) ); const port = 3000; diff --git a/templates/unstable-vite-express/vite.config.ts b/templates/unstable-vite-express/vite.config.ts index f5db4b38007..177dd59b27d 100644 --- a/templates/unstable-vite-express/vite.config.ts +++ b/templates/unstable-vite-express/vite.config.ts @@ -1,5 +1,5 @@ -import { defineConfig } from "vite"; import { unstable_vitePlugin as remix } from "@remix-run/dev"; +import { defineConfig } from "vite"; import tsconfigPaths from "vite-tsconfig-paths"; export default defineConfig({ diff --git a/templates/unstable-vite/vite.config.ts b/templates/unstable-vite/vite.config.ts index f5db4b38007..177dd59b27d 100644 --- a/templates/unstable-vite/vite.config.ts +++ b/templates/unstable-vite/vite.config.ts @@ -1,5 +1,5 @@ -import { defineConfig } from "vite"; import { unstable_vitePlugin as remix } from "@remix-run/dev"; +import { defineConfig } from "vite"; import tsconfigPaths from "vite-tsconfig-paths"; export default defineConfig({