Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add unstable Vite support #7590

Merged
merged 39 commits into from
Oct 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
260f326
router globally accessible on window
pcattori Sep 22, 2023
b3e10d8
support route CSS bindings and critical CSS
markdalgleish Sep 30, 2023
a03ab30
port revive code into remix-dev
markdalgleish Oct 4, 2023
b049de2
support default entry files, add build smoke test
markdalgleish Oct 4, 2023
287c352
add vite to root dependencies
markdalgleish Oct 4, 2023
cff8626
fix vite bin resolution, add vite dev smoke test
markdalgleish Oct 5, 2023
7ee5a0d
use cross-spawn
markdalgleish Oct 5, 2023
0c692d6
log terminal output on vite dev timeout
markdalgleish Oct 5, 2023
275dd37
include stdout in timeout error message
markdalgleish Oct 5, 2023
cde0bfb
improve vite dev test error message
markdalgleish Oct 5, 2023
efeefa8
fix new prefetchStyleLinks usage
markdalgleish Oct 5, 2023
450696a
use require.resolve to get cli path in test
markdalgleish Oct 5, 2023
d969742
spawn dev cli in test
markdalgleish Oct 5, 2023
4fef4bd
run vite bin via node
markdalgleish Oct 6, 2023
c1f55da
avoid fs URLs for local project files
markdalgleish Oct 8, 2023
42c15ef
stringify vite bin path
markdalgleish Oct 8, 2023
70afeae
add hmr smoke test
markdalgleish Oct 9, 2023
569b327
add remark-remix-mdx-frontmatter
markdalgleish Oct 9, 2023
2b69143
add initial vite docs, tweak API
markdalgleish Oct 10, 2023
ecfabce
mark plugin unstable, make top-level dev export
markdalgleish Oct 11, 2023
26cd620
docs: feature matrix, HMR limitations, and acknowledgements
pcattori Oct 11, 2023
9b8b807
docs: feature matrix legend, getting started header
pcattori Oct 11, 2023
45f7dd2
docs: clarify that hourglass means "not yet", not "no"
pcattori Oct 11, 2023
219c32f
add warning message when using unstable vite support
pcattori Oct 11, 2023
a77ca27
rename experimental Vite env var to unstable
markdalgleish Oct 11, 2023
ce65435
remove remix mdx frontmatter plugin, update docs
markdalgleish Oct 12, 2023
ab37bf9
rename vite plugin export
markdalgleish Oct 12, 2023
38674f2
stop wrapping Vite CLI, update docs and tests
markdalgleish Oct 12, 2023
79deb5b
dedupe config resolution logic
markdalgleish Oct 13, 2023
c555072
remove redundant comment
markdalgleish Oct 13, 2023
b520196
Merge branch 'dev' into experimental-vite
markdalgleish Oct 13, 2023
4571afc
update remix router version
markdalgleish Oct 13, 2023
7823547
Update docs/future/vite.md
markdalgleish Oct 13, 2023
2b0fa95
Update docs/future/vite.md
markdalgleish Oct 13, 2023
9d79355
remove remark plugin note
markdalgleish Oct 13, 2023
42acbd2
clean up server/client file docs
markdalgleish Oct 13, 2023
09941cd
tweak hmr docs
markdalgleish Oct 13, 2023
c5954ba
Update docs/future/vite.md
pcattori Oct 13, 2023
b605be3
add changeset
pcattori Oct 13, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .changeset/perfect-rockets-approve.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
"integration-tests": minor
"create-remix": minor
"@remix-run/dev": minor
"@remix-run/react": minor
"@remix-run/server-runtime": minor
"@remix-run/testing": minor
---

Unstable Vite support for Node-based Remix apps

- `remix build` 👉 `vite build && vite build --ssr`
- `remix dev` 👉 `vite dev`

Other runtimes (e.g. Deno, Cloudflare) not yet supported.
Custom server (e.g. Express) not yet supported.

See "Future > Vite" in the Remix Docs for details.
3 changes: 3 additions & 0 deletions docs/future/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
title: Future
---
Loading