-
-
Notifications
You must be signed in to change notification settings - Fork 602
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(mf): __webpack_init_sharing__ with empty config (#6450)
- Loading branch information
Showing
3 changed files
with
14 additions
and
0 deletions.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
...es/rspack-test-tools/tests/configCases/container-1-0/init-sharing-without-config/index.js
This file contains 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,4 @@ | ||
it("should have single runtime chunk", () => { | ||
__webpack_init_sharing__("default"); | ||
expect(typeof __webpack_require__.I).toBe("function") | ||
}); |
8 changes: 8 additions & 0 deletions
8
...-test-tools/tests/configCases/container-1-0/init-sharing-without-config/webpack.config.js
This file contains 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,8 @@ | ||
const { ModuleFederationPluginV1: ModuleFederationPlugin } = require("@rspack/core").container; | ||
|
||
/** @type {import("@rspack/core").Configuration} */ | ||
module.exports = { | ||
plugins: [ | ||
new ModuleFederationPlugin({}), | ||
] | ||
}; |
This file contains 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
8179eec
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
π Benchmark detail: Open
task failure
8179eec
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
π Ran ecosystem CI: Open