in packages/svg-mixer/lib/compiler.js [54:79]
constructor(config = {}) {
/** @type CompilerConfig */
const cfg = merge(this.constructor.defaultConfig, config);
if (!config.spriteClass) {
switch (cfg.spriteType) {
default:
case Sprite.TYPE:
cfg.spriteClass = Sprite;
break;
case StackSprite.TYPE:
cfg.spriteClass = StackSprite;
break;
}
}
const errors = validate(require('../schemas/compiler'), cfg);
if (errors.length) {
throw new Error(errors.join('\n - '));
}
this.config = cfg;
this._symbols = new SymbolsMap();
}