From bfafefd72972365a56e20592f65dd5111580898f Mon Sep 17 00:00:00 2001 From: Colum Ferry Date: Tue, 17 Dec 2024 11:59:49 +0000 Subject: [PATCH] chore(rsbuild): add migration notes --- packages/rsbuild/src/utils/versions.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packages/rsbuild/src/utils/versions.ts b/packages/rsbuild/src/utils/versions.ts index 9f9a369be5003..5c5f757741a51 100644 --- a/packages/rsbuild/src/utils/versions.ts +++ b/packages/rsbuild/src/utils/versions.ts @@ -4,5 +4,13 @@ export const rsbuildPluginReactVersion = '1.1.0'; export const rsbuildPluginSassVersion = '1.1.2'; export const rsbuildPluginLessVersion = '1.1.0'; export const rsbuildPluginStyledComponentsVersion = '1.1.0'; + +/** + * These versions need to line up with the version of the swc_core crate Rspack uses for the version of Rsbuild above + * Checking the `cargo.toml` at https://github.com/web-infra-dev/rspack/blob/main/Cargo.toml for the correct Rspack version + * is the best way to ensure that these versions are correct. + * + * The release notes for the packages below are very helpful in understanding what version of swc_core crate they require. + */ export const rsbuildSwcPluginEmotionVersion = '^7.0.3'; export const rsbuildSwcPluginStyledJsxVersion = '^5.0.2';