feat: refactoring project
This commit is contained in:
9
node_modules/webpack/lib/serialization/Serializer.js
generated
vendored
9
node_modules/webpack/lib/serialization/Serializer.js
generated
vendored
@@ -52,11 +52,10 @@ class Serializer {
|
||||
/** @type {any} */
|
||||
let current = value;
|
||||
for (const middleware of this.deserializeMiddlewares) {
|
||||
if (current && typeof current.then === "function") {
|
||||
current = current.then(data => middleware.deserialize(data, ctx));
|
||||
} else {
|
||||
current = middleware.deserialize(current, ctx);
|
||||
}
|
||||
current =
|
||||
current && typeof current.then === "function"
|
||||
? current.then(data => middleware.deserialize(data, ctx))
|
||||
: middleware.deserialize(current, ctx);
|
||||
}
|
||||
return current;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user