Skip to content

Conversation

@ScriptedAlchemy
Copy link
Member

Remove dynamic entry imports, inline bootstrap in index, enable async startup across webpack (experiments.asyncStartup) and Rspack (experiments.mfAsyncStartup).

Comment on lines +21 to +24
experiments: {
css: true,
mfAsyncStartup: true,
},

Check failure

Code scanning / CodeQL

Overwritten property Error

This property is overwritten by
another property
in the same object literal.

Copilot Autofix

AI 2 days ago

To fix this problem, combine the contents of both experiments properties into a single definition, ensuring that no desired fields are lost. Only one experiments property should remain. The fix should be performed in comprehensive-demo-react18/app-02/rspack.config.js, specifically from lines 21–24 and 64–66. Merge the properties so that experiments contains both css: true and mfAsyncStartup: true. Remove the duplicate second definition (experiments at lines 64–66), and ensure only one experiments block remains in the exported configuration object.

No imports or additional definitions are required.


Suggested changeset 1
comprehensive-demo-react18/app-02/rspack.config.js

Autofix patch

Autofix patch
Run the following command in your local git repository to apply this patch
cat << 'EOF' | git apply
diff --git a/comprehensive-demo-react18/app-02/rspack.config.js b/comprehensive-demo-react18/app-02/rspack.config.js
--- a/comprehensive-demo-react18/app-02/rspack.config.js
+++ b/comprehensive-demo-react18/app-02/rspack.config.js
@@ -61,9 +61,7 @@
       },
     ],
   },
-  experiments: {
-    css: true,
-  },
+  // Removed duplicate 'experiments' property. See line 21 for the correct, merged definition.
 
   plugins: [
     new ModuleFederationPlugin({
EOF
@@ -61,9 +61,7 @@
},
],
},
experiments: {
css: true,
},
// Removed duplicate 'experiments' property. See line 21 for the correct, merged definition.

plugins: [
new ModuleFederationPlugin({
Copilot is powered by AI and may make mistakes. Always verify output.
… for canary version 1.6.2-canary-4e6be088-20251110224718
@ScriptedAlchemy ScriptedAlchemy force-pushed the feat/async-startup-comprehensive-demo branch from 2dffd40 to 962a7ec Compare November 10, 2025 22:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants