You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You may have a page in a different directory than Redwood's default, and you want to reference it in Routes.js. If you import the file as usual, you cannot code split on it. But, there's a special syntax you can use that does preserve code splitting. Apparently we haven't documented it, but we should! I'd probably put it in the Router docs as its own section so it shows in the table of contents at right.
Just a headsup that I'm changing this syntax as part of enabling Render modes. It is normally non-breaking, because these loaders are generated automatically for you by Redwood.
I'm not sure where its going to land, but wanted to comment here for visibility.
Summary and description
You may have a page in a different directory than Redwood's default, and you want to reference it in
Routes.js
. If you import the file as usual, you cannot code split on it. But, there's a special syntax you can use that does preserve code splitting. Apparently we haven't documented it, but we should! I'd probably put it in the Router docs as its own section so it shows in the table of contents at right.Thanks for the syntax @peterp!
Are you interested in working on this?
The text was updated successfully, but these errors were encountered: