Throw on preset w/ neither settings
nor plugins
#200
Labels
🗄 area/interface
This affects the public interface
💪 phase/solved
Post is done
🧑 semver/major
This is a change
🦋 type/enhancement
This is great to have
Initial checklist
Problem
mdx-js/mdx#2136
Solution
Throw here when neither plugins nor settings is defined.
Alternatives
Keep as is.
I don’t imagine most folks want empty presets being silently ignored.
For
unified-engine
, we treat config files as presets as well (though importing plugins-as-string). There might be a tiny use case there for empty config files, as they could “restore-to-defaults” a folder, if a higher folder has a config file that prescribes complex things.This would break that use case.
But I dunno, I don’t think people actually do this?
The text was updated successfully, but these errors were encountered: