Skip to content

Commit

Permalink
chore: format
Browse files Browse the repository at this point in the history
  • Loading branch information
remix-run-bot committed Oct 31, 2023
1 parent 610e352 commit 33c64cb
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion docs/discussion/hot-module-replacement.md
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ export default Component() {
}
```

then React Fast Refresh will preserve state for the `<input />`, though you may need to use [component keys][component-keys] as described in the next section if the stateful element (e.g. `<input />`) is a sibling of the changed element.
then React Fast Refresh will preserve state for the `<input />`, though you may need to use \[component keys]\[component-keys] as described in the next section if the stateful element (e.g. `<input />`) is a sibling of the changed element.

### Component Keys

Expand Down
6 changes: 4 additions & 2 deletions docs/future/vite.md
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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
4 changes: 2 additions & 2 deletions templates/unstable-vite-express/server.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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" }));
Expand All @@ -33,7 +33,7 @@ app.all(
build: vite
? () => unstable_loadViteServerBuild(vite)
: await import("./build/index.js"),
}),
})
);

const port = 3000;
Expand Down
2 changes: 1 addition & 1 deletion templates/unstable-vite-express/vite.config.ts
Original file line number Diff line number Diff line change
@@ -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({
Expand Down
2 changes: 1 addition & 1 deletion templates/unstable-vite/vite.config.ts
Original file line number Diff line number Diff line change
@@ -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({
Expand Down

0 comments on commit 33c64cb

Please sign in to comment.