mirror of https://github.com/webpack/webpack.git
test: fix
This commit is contained in:
parent
637bdc1e72
commit
c27648461e
|
@ -110,18 +110,14 @@ const describeCases = config => {
|
||||||
(options.experiments && options.experiments.outputModule
|
(options.experiments && options.experiments.outputModule
|
||||||
? ".mjs"
|
? ".mjs"
|
||||||
: ".js");
|
: ".js");
|
||||||
if (
|
if (config.cache) {
|
||||||
(config.cache && config.cache !== true) ||
|
|
||||||
(options.cache && options.cache !== true)
|
|
||||||
) {
|
|
||||||
options.cache = {
|
options.cache = {
|
||||||
cacheDirectory,
|
cacheDirectory,
|
||||||
name:
|
name:
|
||||||
options.cache && options.cache !== true
|
options.cache && options.cache !== true
|
||||||
? options.cache.name
|
? options.cache.name
|
||||||
: `config-${idx}`,
|
: `config-${idx}`,
|
||||||
...config.cache,
|
...config.cache
|
||||||
...options.cache
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
if (config.cache) {
|
if (config.cache) {
|
||||||
|
|
Loading…
Reference in New Issue