-
-
Notifications
You must be signed in to change notification settings - Fork 622
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c348c66
commit ce7c6cb
Showing
11 changed files
with
119 additions
and
0 deletions.
There are no files selected for viewing
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
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,11 @@ | ||
module.exports = () => { | ||
console.log("other.config.js"); | ||
|
||
return { | ||
name: "other_config", | ||
mode: "development", | ||
experiments: { | ||
topLevelAwait: true, | ||
}, | ||
}; | ||
}; |
15 changes: 15 additions & 0 deletions
15
test/build/extends/multiple-configs1/base.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,15 @@ | ||
const WebpackCLITestPlugin = require("../../../utils/webpack-cli-test-plugin"); | ||
|
||
module.exports = () => { | ||
console.log("base.webpack.config.js"); | ||
|
||
return { | ||
name: "base_config", | ||
mode: "development", | ||
plugins: [new WebpackCLITestPlugin()], | ||
|
||
experiments: { | ||
topLevelAwait: true, | ||
}, | ||
}; | ||
}; |
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,11 @@ | ||
module.exports = () => { | ||
console.log("other.config.js"); | ||
|
||
return { | ||
name: "other_config", | ||
mode: "development", | ||
experiments: { | ||
topLevelAwait: true, | ||
}, | ||
}; | ||
}; |
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 @@ | ||
console.log("i am index1.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 @@ | ||
console.log("i am index2.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,14 @@ | ||
module.exports = () => { | ||
console.log("derived.webpack.config.js"); | ||
|
||
return [ | ||
{ | ||
name: "derived_config1", | ||
entry: "./src/index1.js", | ||
}, | ||
{ | ||
name: "derived_config2", | ||
entry: "./src/index2.js", | ||
}, | ||
]; | ||
}; |
16 changes: 16 additions & 0 deletions
16
test/build/extends/multiple-configs2/base.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,16 @@ | ||
const WebpackCLITestPlugin = require("../../../utils/webpack-cli-test-plugin"); | ||
|
||
module.exports = () => { | ||
console.log("base.webpack.config.js"); | ||
|
||
return { | ||
entry: "./src/index1.js", | ||
name: "base_config", | ||
mode: "development", | ||
plugins: [new WebpackCLITestPlugin()], | ||
|
||
experiments: { | ||
topLevelAwait: true, | ||
}, | ||
}; | ||
}; |
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 @@ | ||
console.log("i am index1.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 @@ | ||
console.log("i am index2.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,17 @@ | ||
const WebpackCLITestPlugin = require("../../../utils/webpack-cli-test-plugin"); | ||
|
||
module.exports = () => { | ||
console.log("derived.webpack.config.js"); | ||
|
||
return [ | ||
{ | ||
extends: "./base.webpack.config.js", | ||
}, | ||
{ | ||
name: "derived_config2", | ||
mode: "development", | ||
entry: "./src/index2.js", | ||
plugins: [new WebpackCLITestPlugin()], | ||
}, | ||
]; | ||
}; |