Defer all code generation for with expressions, to avoid Babel validation errors for dynamically generated environment values
This commit is contained in:
parent
b1b7885507
commit
5a13358ef8
|
@ -93,11 +93,11 @@ let trivial = {
|
||||||
let contextName = `$implicit${implicitContextCounter++}`;
|
let contextName = `$implicit${implicitContextCounter++}`;
|
||||||
setContext(null, "implicitContext", contextName);
|
setContext(null, "implicitContext", contextName);
|
||||||
|
|
||||||
|
return defer((node) => {
|
||||||
let setupCode = (hasParent)
|
let setupCode = (hasParent)
|
||||||
? tmplImplicitContextNested({ environment: node.environment, parent: parentContext })
|
? tmplImplicitContextNested({ environment: node.environment, parent: parentContext })
|
||||||
: tmplImplicitContextTop({ environment: node.environment });
|
: tmplImplicitContextTop({ environment: node.environment });
|
||||||
|
|
||||||
return defer((node) => {
|
|
||||||
return tmplWithWrapper({
|
return tmplWithWrapper({
|
||||||
contextName: contextName,
|
contextName: contextName,
|
||||||
setupCode: setupCode,
|
setupCode: setupCode,
|
||||||
|
|
Loading…
Reference in a new issue