We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93acc26 commit b10e6b1Copy full SHA for b10e6b1
1 file changed
packages/plugin-rsc/src/plugin.ts
@@ -468,7 +468,7 @@ export default function vitePluginRsc(
468
// crawl packages with "react" in "peerDependencies" to bundle react deps on server
469
// see https://github.com/svitejs/vitefu/blob/d8d82fa121e3b2215ba437107093c77bde51b63b/src/index.js#L95-L101
470
const result = await crawlFrameworkPkgs({
471
- root: process.cwd(),
+ root: config.root ?? process.cwd(),
472
isBuild: env.command === 'build',
473
isFrameworkPkgByJson(pkgJson) {
474
if ([PKG_NAME, 'react-dom'].includes(pkgJson.name)) {
0 commit comments