-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
comprehensive-demo-react18: inline bootstrap + async startup #4406
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
Open
ScriptedAlchemy
wants to merge
6
commits into
master
Choose a base branch
from
feat/async-startup-comprehensive-demo
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
8b780c0
comprehensive-demo-react18: inline bootstrap and enable async startup…
ScriptedAlchemy 962a7ec
comprehensive-demo-react18: use npm aliases to @rspack-canary/browser…
ScriptedAlchemy 55642e2
update pnpm-lock.yaml with Rspack canary npm aliases
ScriptedAlchemy f82160f
comprehensive-demo-react18: use pnpm overrides to alias all @rspack p…
ScriptedAlchemy 37a970a
comprehensive-demo-react18: use stable CLI but canary for core/dev-se…
ScriptedAlchemy e22a123
comprehensive-demo-react18: fix pnpm overrides to use correct canary …
ScriptedAlchemy File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -25,6 +25,7 @@ module.exports = { | |
| }, | ||
| experiments: { | ||
| css: true, | ||
| mfAsyncStartup: true, | ||
| }, | ||
|
|
||
| module: { | ||
|
|
||
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,5 @@ | ||
| import('./bootstrap'); | ||
| import App from './App'; | ||
| import React from 'react'; | ||
| import ReactDOM from 'react-dom'; | ||
|
|
||
| ReactDOM.render(<App />, document.getElementById('root')); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,5 @@ | ||
| import('./bootstrap'); | ||
| import App from './App'; | ||
| import React from 'react'; | ||
| import ReactDOM from 'react-dom'; | ||
|
|
||
| ReactDOM.render(<App />, document.getElementById('root')); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,5 @@ | ||
| import('./bootstrap'); | ||
| import App from './App'; | ||
| import React from 'react'; | ||
| import ReactDOM from 'react-dom'; | ||
|
|
||
| ReactDOM.render(<App />, document.getElementById('root')); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,71 @@ | ||
| { | ||
| "id": "app_04", | ||
| "name": "app_04", | ||
| "metaData": { | ||
| "name": "app_04", | ||
| "type": "app", | ||
| "buildInfo": { | ||
| "buildVersion": "1.0.0", | ||
| "buildName": "comprehensive-demo-react18_app-04" | ||
| }, | ||
| "remoteEntry": { | ||
| "name": "remoteEntry.js", | ||
| "path": "", | ||
| "type": "global" | ||
| }, | ||
| "types": { | ||
| "path": "", | ||
| "name": "", | ||
| "zip": "", | ||
| "api": "" | ||
| }, | ||
| "globalName": "app_04", | ||
| "pluginVersion": "0.17.1", | ||
| "prefetchInterface": false, | ||
| "publicPath": "auto" | ||
| }, | ||
| "shared": [], | ||
| "remotes": [], | ||
| "exposes": [ | ||
| { | ||
| "id": "app_04:App", | ||
| "name": "App", | ||
| "assets": { | ||
| "js": { | ||
| "sync": [ | ||
| "875.875.js", | ||
| "__federation_expose_App.874.js" | ||
| ], | ||
| "async": [] | ||
| }, | ||
| "css": { | ||
| "sync": [ | ||
| "__federation_expose_App.874.css" | ||
| ], | ||
| "async": [] | ||
| } | ||
| }, | ||
| "path": "./App" | ||
| }, | ||
| { | ||
| "id": "app_04:loadApp", | ||
| "name": "loadApp", | ||
| "assets": { | ||
| "js": { | ||
| "sync": [ | ||
| "875.875.js", | ||
| "__federation_expose_loadApp.474.js" | ||
| ], | ||
| "async": [] | ||
| }, | ||
| "css": { | ||
| "sync": [ | ||
| "__federation_expose_loadApp.474.css" | ||
| ], | ||
| "async": [] | ||
| } | ||
| }, | ||
| "path": "./loadApp" | ||
| } | ||
| ] | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,75 @@ | ||
| { | ||
| "id": "app_04", | ||
| "name": "app_04", | ||
| "metaData": { | ||
| "name": "app_04", | ||
| "type": "app", | ||
| "buildInfo": { | ||
| "buildVersion": "1.0.0", | ||
| "buildName": "comprehensive-demo-react18_app-04" | ||
| }, | ||
| "remoteEntry": { | ||
| "name": "remoteEntry.js", | ||
| "path": "", | ||
| "type": "global" | ||
| }, | ||
| "types": { | ||
| "path": "", | ||
| "name": "", | ||
| "zip": "", | ||
| "api": "" | ||
| }, | ||
| "globalName": "app_04", | ||
| "pluginVersion": "0.17.1", | ||
| "prefetchInterface": false, | ||
| "publicPath": "auto" | ||
| }, | ||
| "shared": [], | ||
| "remotes": [], | ||
| "exposes": [ | ||
| { | ||
| "path": "./App", | ||
| "id": "app_04:App", | ||
| "name": "App", | ||
| "requires": [], | ||
| "file": "src/main.js", | ||
| "assets": { | ||
| "js": { | ||
| "sync": [ | ||
| "875.875.js", | ||
| "__federation_expose_App.874.js" | ||
| ], | ||
| "async": [] | ||
| }, | ||
| "css": { | ||
| "sync": [ | ||
| "__federation_expose_App.874.css" | ||
| ], | ||
| "async": [] | ||
| } | ||
| } | ||
| }, | ||
| { | ||
| "path": "./loadApp", | ||
| "id": "app_04:loadApp", | ||
| "name": "loadApp", | ||
| "requires": [], | ||
| "file": "src/loadApp.js", | ||
| "assets": { | ||
| "js": { | ||
| "sync": [ | ||
| "875.875.js", | ||
| "__federation_expose_loadApp.474.js" | ||
| ], | ||
| "async": [] | ||
| }, | ||
| "css": { | ||
| "sync": [ | ||
| "__federation_expose_loadApp.474.css" | ||
| ], | ||
| "async": [] | ||
| } | ||
| } | ||
| } | ||
| ] | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -60,5 +60,6 @@ module.exports = { | |
| devtool: prod ? false : 'source-map', | ||
| experiments: { | ||
| css: true, | ||
| mfAsyncStartup: true, | ||
| }, | ||
| }; | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Check failure
Code scanning / CodeQL
Overwritten property Error
Copilot Autofix
AI 2 days ago
To fix this problem, combine the contents of both
experimentsproperties into a single definition, ensuring that no desired fields are lost. Only oneexperimentsproperty 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 thatexperimentscontains bothcss: trueandmfAsyncStartup: true. Remove the duplicate second definition (experimentsat lines 64–66), and ensure only oneexperimentsblock remains in the exported configuration object.No imports or additional definitions are required.