Skip to content

Commit 8cb5b35

Browse files
Revert "test: cover asyncStartup commonjs share"
This reverts commit c7dde4d.
1 parent 8d6cbf7 commit 8cb5b35

File tree

2 files changed

+1
-29
lines changed

2 files changed

+1
-29
lines changed

tests/rspack-test/serialCases/container-1-5/2-async-startup-sync-imports/rspack.config.js

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -66,31 +66,5 @@ module.exports = [
6666
})
6767
],
6868
target: "node14"
69-
},
70-
// Node/CommonJS variant to ensure asyncStartup works without eager shares or dynamic import()
71-
{
72-
...common,
73-
target: "node",
74-
output: {
75-
filename: "node/[name].cjs",
76-
chunkFilename: "node/[name].cjs",
77-
uniqueName: "2-async-startup-sync-imports-node",
78-
chunkFormat: "commonjs"
79-
},
80-
plugins: [
81-
new ModuleFederationPlugin({
82-
name: "container",
83-
library: { type: "commonjs-module" },
84-
filename: "node/container.cjs",
85-
remotes: {
86-
containerA: "../0-container-full/container.js",
87-
containerB: "./node/container.cjs"
88-
},
89-
...commonMF,
90-
experiments: {
91-
asyncStartup: true
92-
}
93-
})
94-
]
9569
}
9670
];
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
/** @type {import('@rspack/test-tools').TConfigCaseConfig} */
22
module.exports = {
33
findBundle: function (i, options) {
4-
if (i === 0) return "./main.js";
5-
if (i === 1) return "./module/main.mjs";
6-
return "./node/main.cjs";
4+
return i === 0 ? "./main.js" : "./module/main.mjs";
75
}
86
};

0 commit comments

Comments
 (0)