Skip to content

comprehensive-demo-react18: inline bootstrap + async startup#4406

Closed
ScriptedAlchemy wants to merge 6 commits intomasterfrom
feat/async-startup-comprehensive-demo
Closed

comprehensive-demo-react18: inline bootstrap + async startup#4406
ScriptedAlchemy wants to merge 6 commits intomasterfrom
feat/async-startup-comprehensive-demo

Conversation

@ScriptedAlchemy
Copy link
Copy Markdown
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 6 months 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
@ScriptedAlchemy
Copy link
Copy Markdown
Member Author

Closing: asyncStartup is already enabled on master via #4412. The remaining bootstrap inlining (removing import('./bootstrap') wrapper) is trivial and better done fresh on master than merging this heavily outdated branch (deps at 0.17.1/1.4.11 vs master's 0.23.0/1.7.4).

@ScriptedAlchemy ScriptedAlchemy deleted the feat/async-startup-comprehensive-demo branch February 2, 2026 20:34
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