diff --git a/.changeset/deep-ideas-grin.md b/.changeset/deep-ideas-grin.md new file mode 100644 index 0000000000..853d812bb3 --- /dev/null +++ b/.changeset/deep-ideas-grin.md @@ -0,0 +1,3 @@ +--- + +--- diff --git a/packages/rspeedy/plugin-react/src/pluginReactLynx.ts b/packages/rspeedy/plugin-react/src/pluginReactLynx.ts index 2578d4f238..4f4c9fd023 100644 --- a/packages/rspeedy/plugin-react/src/pluginReactLynx.ts +++ b/packages/rspeedy/plugin-react/src/pluginReactLynx.ts @@ -348,19 +348,7 @@ export function pluginReactLynx( }) } - // This is used for compat with `@lynx-js/rspeedy` <= 0.9.6 - // where the default value of `output.inlineScripts` is `false`. - // TODO: remove this when required Rspeedy version bumped to ^0.9.7 - if (typeof userConfig.output?.inlineScripts === 'undefined') { - config = mergeRsbuildConfig(config, { - output: { - inlineScripts: true, - }, - }) - } - // This is used to avoid the IIFE in main-thread.js, which would cause memory leak. - // TODO: remove this when required Rspeedy version bumped to ^0.10.0 config = mergeRsbuildConfig({ tools: { rspack: { output: { iife: false } }, diff --git a/packages/rspeedy/plugin-react/src/swc.ts b/packages/rspeedy/plugin-react/src/swc.ts index fb9117b863..77ee255695 100644 --- a/packages/rspeedy/plugin-react/src/swc.ts +++ b/packages/rspeedy/plugin-react/src/swc.ts @@ -10,7 +10,6 @@ export function applySWC(api: RsbuildPluginAPI): void { swc: { jsc: { transform: { - // TODO: remove this in the next minor version useDefineForClassFields: false, optimizer: { simplify: true,