-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
RSC: Vite plugin for route loading (#10252)
**Problem** We have to be smarter about how we automatically load route pages during dev. As a result, we have refactored out the logic into a vite plugin which has access to knowledge about whether it is being built for (or served for) SSR. **Changes** 1. Removed babel plugins for the RSC server and client route loading 2. Added a vite plugin which uses babel to automatically import the route pages 3. Refactored the `react` vite plugin back into the root config in `index.ts` as it no longer has to be specifically applied in the various vite build or create calls.
- Loading branch information
1 parent
b7d3cfc
commit 43ca27a
Showing
17 changed files
with
631 additions
and
566 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
100 changes: 0 additions & 100 deletions
100
...l-config/src/plugins/__tests__/babel-plugin-redwood-routes-auto-loader-rsc-client.test.ts
This file was deleted.
Oops, something went wrong.
98 changes: 0 additions & 98 deletions
98
...l-config/src/plugins/__tests__/babel-plugin-redwood-routes-auto-loader-rsc-server.test.ts
This file was deleted.
Oops, something went wrong.
120 changes: 0 additions & 120 deletions
120
packages/babel-config/src/plugins/babel-plugin-redwood-routes-auto-loader-rsc-client.ts
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.