Skip to content

Commit 4be0108

Browse files
bjohansebasCopilot
andauthored
fixup!
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 89930d1 commit 4be0108

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

lib/Server.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,9 @@ class Server {
341341
* @param {(Compiler | MultiCompiler)=} compiler compiler, omitted when the server is used as a plugin via `apply()`
342342
*/
343343
constructor(options, compiler) {
344-
options ??= {};
344+
if (typeof options === "undefined") {
345+
options = {};
346+
}
345347

346348
validate(/** @type {Schema} */ (schema), options, {
347349
name: "Dev Server",

0 commit comments

Comments
 (0)