Skip to content

Commit 94aba39

Browse files
authored
docs(start/quickstart): add future Vite compatibility (#9667)
1 parent ee29df6 commit 94aba39

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

contributors.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,7 @@
199199
- evanwinter
200200
- everdimension
201201
- exegeteio
202+
- ezekeal
202203
- F3n67u
203204
- FAL-coffee
204205
- fayez-nazzal

docs/start/quickstart.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,16 @@ export default function App() {
9191

9292
## Build and Run
9393

94-
First build the app for production:
94+
First you will need to specify the type as `module` in `package.json` to satisfy esmodule requirements for `remix-run` and future versions of `vite`.
95+
96+
```jsonc filename=package.json lines=[2] nocopy
97+
{
98+
"type": "module"
99+
// ...
100+
}
101+
```
102+
103+
Next build the app for production:
95104

96105
```shellscript nonumber
97106
npx remix vite:build
@@ -101,15 +110,6 @@ You should now see a `build` folder containing a `server` folder (the server ver
101110

102111
👉 **Run the app with `remix-serve`**
103112

104-
First you will need to specify the type in `package.json` as module so that `remix-serve` can run your app.
105-
106-
```jsonc filename=package.json lines=[2] nocopy
107-
{
108-
"type": "module"
109-
// ...
110-
}
111-
```
112-
113113
Now you can run your app with `remix-serve`:
114114

115115
```shellscript nonumber

0 commit comments

Comments
 (0)