This PR changes how module resolution works in @lazarv/react-server. This is a major change and needs more test cases in the future to maintain stability and quality.
Add support for the following third-party libraries:
@tanstack/react-query
@mui/material
@mantine/core
Some packages need to be specifically marked as external to keep them usable.
This PR changes how module resolution works in
@lazarv/react-server
. This is a major change and needs more test cases in the future to maintain stability and quality.Add support for the following third-party libraries:
Some packages need to be specifically marked as
external
to keep them usable.Examples:
lucide-react
in https://github.com/lazarv/react-server/blob/fix/external-use-client/docs/vite.config.mjs#L7better-sqlite3
in https://github.com/lazarv/react-server/blob/fix/external-use-client/examples/todo/react-server.config.json#L3The
external
packages can be specified by adding aresolve.external
section toreact-server.config.json
(.mjs
or.ts
) orvite.config.mjs
(.ts
).This PR should also fix the following issues:
To showcase usage of these third-party libraries, this PR also adds new examples:
Some low-level packages needed special attention: