repl: only display writable exports in props editor

pull/2126/head
Conduitry 6 years ago
parent 6e8d884c9d
commit 50e92afb25

@ -37,7 +37,7 @@ function compile({ source, options, entry }) {
);
const props = entry
? (vars || stats.vars).map(v => v.export_name).filter(Boolean) // TODO remove stats post-launch
? (vars || stats.vars).map(v => v.writable && v.export_name).filter(Boolean) // TODO remove stats post-launch
: null;
return { js: js.code, css: css.code, props };

Loading…
Cancel
Save