Skip to content

Commit 1d0a3d6

Browse files
committed
Remove duplicated assertion. Covered by validate()
1 parent 18ea5ac commit 1d0a3d6

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

packages/babel-core/src/config/option-manager.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -366,13 +366,6 @@ function createDescriptor(
366366
);
367367
}
368368

369-
if (options != null && typeof options !== "object") {
370-
throw new Error(
371-
"Plugin/Preset options must be an object, null, or undefined",
372-
);
373-
}
374-
options = options || undefined;
375-
376369
return {
377370
alias: filepath || `${alias}$${index}`,
378371
value,

0 commit comments

Comments
 (0)