Skip to content

Commit

Permalink
[FIX] playground: properly set dev flag in examples
Browse files Browse the repository at this point in the history
  • Loading branch information
ged-odoo authored and sdegueldre committed Mar 8, 2022
1 parent b3062d2 commit f04423d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tools/playground/samples.js
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -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*/`
Expand Down Expand Up @@ -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 });
`;

Expand Down

0 comments on commit f04423d

Please sign in to comment.