diff --git a/src/generators/Generator.ts b/src/generators/Generator.ts index 44b93f85c5..3cd6d5da25 100644 --- a/src/generators/Generator.ts +++ b/src/generators/Generator.ts @@ -72,15 +72,8 @@ function removeIndentation( // We need to tell estree-walker that it should always // look for an `else` block, otherwise it might get // the wrong idea about the shape of each/if blocks -childKeys.EachBlock = [ - 'children', - 'else' -]; - -childKeys.IfBlock = [ - 'children', - 'else' -]; +childKeys.EachBlock = childKeys.IfBlock = ['children', 'else']; +childKeys.Attribute = ['value']; export default class Generator { ast: Parsed; diff --git a/test/runtime/samples/component-data-static-boolean-regression/Link.html b/test/runtime/samples/component-data-static-boolean-regression/Link.html new file mode 100644 index 0000000000..ecdf709900 --- /dev/null +++ b/test/runtime/samples/component-data-static-boolean-regression/Link.html @@ -0,0 +1 @@ +link \ No newline at end of file diff --git a/test/runtime/samples/component-data-static-boolean-regression/_config.js b/test/runtime/samples/component-data-static-boolean-regression/_config.js new file mode 100644 index 0000000000..61f8ba0a06 --- /dev/null +++ b/test/runtime/samples/component-data-static-boolean-regression/_config.js @@ -0,0 +1,3 @@ +export default { + html: `link` +}; diff --git a/test/runtime/samples/component-data-static-boolean-regression/main.html b/test/runtime/samples/component-data-static-boolean-regression/main.html new file mode 100644 index 0000000000..5f51d903b3 --- /dev/null +++ b/test/runtime/samples/component-data-static-boolean-regression/main.html @@ -0,0 +1,10 @@ + + + \ No newline at end of file