Skip to content

Commit

Permalink
RSC build without user config (#8896)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobbe committed Jul 13, 2023
1 parent 921c9cb commit 37692a4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/vite/src/buildRscFeServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const buildRscFeServer = async ({
const { clientEntryFiles, serverEntryFiles } = await rscBuild(viteConfigPath)

const clientBuildOutput = await viteBuild({
configFile: viteConfigPath,
// configFile: viteConfigPath,
root: webSrc,
plugins: [react(), rscIndexPlugin()],
build: {
Expand Down Expand Up @@ -194,7 +194,7 @@ export const buildRscFeServer = async ({
// https://github.com/microsoft/TypeScript/issues/53656 have both landed we
// should try to do this instead:
// const clientBuildManifest: ViteBuildManifest = await import(
// path.join(getPaths().web.dist, 'build-manifest.json'),
// path.join(getPaths().web.dist, 'client-build-manifest.json'),
// { with: { type: 'json' } }
// )
// NOTES:
Expand Down
3 changes: 1 addition & 2 deletions packages/vite/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ import { getConfig, getPaths } from '@redwoodjs/project-config'
import { handleJsAsJsx } from './vite-plugin-jsx-loader'

/**
* Preconfigured vite plugin, with required config for Redwood apps.
*
* Pre-configured vite plugin, with required config for Redwood apps.
*/
export default function redwoodPluginVite(): PluginOption[] {
const rwPaths = getPaths()
Expand Down

0 comments on commit 37692a4

Please sign in to comment.