@strudel/transpiler plugin system

This commit is contained in:
jeromew 2026-02-18 10:57:25 +00:00
parent 6b00837a4d
commit bc8517ade7
9 changed files with 680 additions and 506 deletions

View file

@ -230,7 +230,7 @@ export class StrudelMirror {
afterEval: (options) => {
// remember for when highlighting is toggled on
this.miniLocations = options.meta?.miniLocations || [];
this.widgets = options.meta?.widgets;
this.widgets = options.meta?.widgets || [];
const sliders = this.widgets.filter((w) => w.type === 'slider');
const widgets = this.widgets.filter((w) => w.type !== 'slider');