New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(deps): update dependency vite to v5 #10167
Closed
Closed
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
da9ac1a
fix(deps): update dependency vite to v5
renovate[bot] b48011d
remove legacy build option
jtoar 3b65038
remove legacy build option
jtoar e724df5
rename ssrBuild property to isSsrBuild
jtoar 6f5c336
ignore cjs warning in dev
jtoar 521e79e
fix spelling
jtoar ef22047
ignore cjs warnings in build too
jtoar 91d8e7c
correct comment
jtoar d71b4d8
style
jtoar 42ce2cd
Merge branch 'main' into renovate/vite-5.x
jtoar 7ecdff6
Merge branch 'main' into renovate/vite-5.x
jtoar b9830bd
Merge branch 'main' into renovate/vite-5.x
jtoar 7a12ade
try one less slash
jtoar 920f324
debug ci
jtoar 281bca2
Merge branch 'main' into renovate/vite-5.x
jtoar a878a77
Revert "debug ci"
jtoar 6cc933e
revert file url change
jtoar 9767c20
upgrade rollup
jtoar e203bd9
update paths
jtoar 26c0427
disable rsc workflow on windows
jtoar 2acba93
debug
jtoar d2495a7
build verbose
jtoar 1a43152
debug using tmate
jtoar File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -118,11 +118,11 @@ export function getMergedConfig(rwConfig: Config, rwPaths: Paths) { | |
? rwPaths.web.distClient | ||
: rwPaths.web.dist, | ||
emptyOutDir: true, | ||
manifest: !env.ssrBuild ? 'client-build-manifest.json' : undefined, | ||
manifest: !env.isSsrBuild ? 'client-build-manifest.json' : undefined, | ||
// Note that sourcemap can be boolean or 'inline' | ||
sourcemap: !env.ssrBuild && rwConfig.web.sourceMap, | ||
sourcemap: !env.isSsrBuild && rwConfig.web.sourceMap, | ||
rollupOptions: { | ||
input: getRollupInput(!!env.ssrBuild), | ||
input: getRollupInput(!!env.isSsrBuild), | ||
Comment on lines
-121
to
+125
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. One of the breaking changes; |
||
}, | ||
}, | ||
// @MARK: do not set buildSsrCjsExternalHeuristics here | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,10 +37,6 @@ export async function rscBuildForServer( | |
// TODO (RSC): No redwood-vite plugin, add it in here | ||
const rscServerBuildOutput = await viteBuild({ | ||
envFile: false, | ||
legacy: { | ||
// @MARK: for the worker, we're building ESM! (not CJS) | ||
buildSsrCjsExternalHeuristics: false, | ||
}, | ||
Comment on lines
-40
to
-43
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is gone in Vite v5; see vitejs/vite#13816 |
||
ssr: { | ||
// Externalize everything except packages with files that have | ||
// 'use client' in them (which are the files in `clientEntryFiles`) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Vite 5 deprecated the CJS api. The only place the CJS api is used is in a user's vite.config.ts file. We can disable the warning with https://github.com/vitejs/vite/blob/504bc5f80888ebd89d6c6726b18cb6f322ed538f/packages/vite/index.cjs#L29.