[FIX] playground: properly set dev flag in examples

This commit is contained in:
Géry Debongnie
2022-03-08 09:22:29 +01:00
committed by Samuel Degueldre
parent b3062d29f1
commit f04423da23
+4 -4
View File
@@ -24,8 +24,7 @@ class Root extends Component {
}
}
// dev=false for benchmarking. we don't want to benchmark dev code!
mount(Root, document.body, { templates: TEMPLATES, dev: false });`;
mount(Root, document.body, { templates: TEMPLATES, dev: true });`;
const COMPONENTS_XML = /*xml*/`
<templates>
@@ -934,7 +933,7 @@ const env = {
ui: createUI()
};
mount(Root, document.body, { templates: TEMPLATES, env });
mount(Root, document.body, { templates: TEMPLATES, env, dev: true });
`;
const RESPONSIVE_XML = /*xml*/`
@@ -1741,7 +1740,8 @@ class Root extends Component {
}
mount(Root, document.body, { templates: TEMPLATES, dev: true });
// dev=false for benchmarking. we don't want to benchmark dev code!
mount(Root, document.body, { templates: TEMPLATES, dev: false });
`;