-
-
Notifications
You must be signed in to change notification settings - Fork 8.1k
ci: update react-swc plugin version in create-vite by renovate #19394
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
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -593,10 +593,13 @@ function pkgFromUserAgent(userAgent: string | undefined): PkgInfo | undefined { | |||||
| } | ||||||
|
|
||||||
| function setupReactSwc(root: string, isTs: boolean) { | ||||||
| // renovate: datasource=npm depName=@vitejs/plugin-react-swc | ||||||
| const reactSwcPluginVersion = '3.7.2' | ||||||
|
Member
Author
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.
Suggested change
I'm not sure how to test this PR. Maybe setting a lower version so that renovate tries to update it?
Member
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. I'm ok with not testing this for now. Verifying the regex manually it seems that it should work as expected though. |
||||||
|
|
||||||
| editFile(path.resolve(root, 'package.json'), (content) => { | ||||||
| return content.replace( | ||||||
| /"@vitejs\/plugin-react": ".+?"/, | ||||||
| `"@vitejs/plugin-react-swc": "^3.7.2"`, | ||||||
| `"@vitejs/plugin-react-swc": "^${reactSwcPluginVersion}"`, | ||||||
| ) | ||||||
| }) | ||||||
| editFile( | ||||||
|
|
||||||
Uh oh!
There was an error while loading. Please reload this page.