diff --git a/packages/babel-core/src/config/option-manager.js b/packages/babel-core/src/config/option-manager.js index 25e810c083..8ee3fe99b5 100644 --- a/packages/babel-core/src/config/option-manager.js +++ b/packages/babel-core/src/config/option-manager.js @@ -366,13 +366,6 @@ function createDescriptor( ); } - if (options != null && typeof options !== "object") { - throw new Error( - "Plugin/Preset options must be an object, null, or undefined", - ); - } - options = options || undefined; - return { alias: filepath || `${alias}$${index}`, value,