Skip to content

Commit

Permalink
RSC: Be consistent about inlining rollup input (#10472)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobbe committed Apr 17, 2024
1 parent b72ce72 commit 852e457
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions packages/vite/src/rsc/rscBuildForServer.ts
Expand Up @@ -29,13 +29,6 @@ export async function rscBuildForServer(
throw new Error('RSC entries file not found')
}

const input = {
entries: rwPaths.web.entries,
...clientEntryFiles,
...serverEntryFiles,
...customModules,
}

// TODO (RSC): No redwood-vite plugin, add it in here
const rscServerBuildOutput = await viteBuild({
envFile: false,
Expand Down Expand Up @@ -81,7 +74,12 @@ export async function rscBuildForServer(
manifest: 'server-build-manifest.json',
rollupOptions: {
onwarn: onWarn,
input,
input: {
entries: rwPaths.web.entries,
...clientEntryFiles,
...serverEntryFiles,
...customModules,
},
output: {
banner: (chunk) => {
// HACK to bring directives to the front
Expand Down

0 comments on commit 852e457

Please sign in to comment.