Skip to content

Commit c3691df

Browse files
committed
fix CI problems
1 parent d912487 commit c3691df

4 files changed

Lines changed: 11 additions & 2 deletions

File tree

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
module.exports = {
22
findBundle: function (i, options) {
3-
return i === 0 ? "./main.js" : "./module/main.mjs";
3+
// In node 10 the ESM part of the test doesn't work
4+
return i === 0 || process.version.startsWith("v10.")
5+
? "./main.js"
6+
: "./module/main.mjs";
47
}
58
};

‎test/configCases/container/0-container-full/webpack.config.js‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
const { ModuleFederationPlugin } = require("../../../../").container;
22

3+
/** @type {ConstructorParameters<typeof ModuleFederationPlugin>[0]} */
34
const common = {
45
name: "container",
56
exposes: {
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
module.exports = {
22
findBundle: function (i, options) {
3-
return i === 0 ? "./main.js" : "./module/main.mjs";
3+
// In node 10 the ESM part of the test doesn't work
4+
return i === 0 || process.version.startsWith("v10.")
5+
? "./main.js"
6+
: "./module/main.mjs";
47
}
58
};

‎test/configCases/container/1-container-full/webpack.config.js‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ const common = {
99
runtimeChunk: "single"
1010
}
1111
};
12+
13+
/** @type {ConstructorParameters<typeof ModuleFederationPlugin>[0]} */
1214
const commonMF = {
1315
runtime: false,
1416
exposes: {

0 commit comments

Comments
 (0)