If it fails, it will try to load preset using name as is.
Preset exports
Preset package should have default export which is a async (returns Promise) or sync function that accepts optional options object and returns the config object:
export default function createPreset(options) { return { // config }}
Preset options
To pass options to the preset, loadPreset function accepts object with name property as first argument:
const { loadPreset } = require('conventional-changelog-preset-loader')loadPreset({ name: 'angular', ...presetOptions}).then((config) => { // do something with config object})