bobe 0.0.65 → 0.0.67
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bobe.cjs.js +4 -1
- package/dist/bobe.cjs.js.map +1 -1
- package/dist/bobe.compiler.cjs.js +4 -1
- package/dist/bobe.compiler.cjs.js.map +1 -1
- package/dist/bobe.compiler.esm.js +4 -1
- package/dist/bobe.compiler.esm.js.map +1 -1
- package/dist/bobe.esm.js +4 -1
- package/dist/bobe.esm.js.map +1 -1
- package/dist/index.umd.js +4 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +4 -3
package/dist/bobe.esm.js
CHANGED
|
@@ -1096,7 +1096,7 @@ class Compiler {
|
|
|
1096
1096
|
if (value === 'for') {
|
|
1097
1097
|
return this.parseLoopNode();
|
|
1098
1098
|
}
|
|
1099
|
-
if (hookType) {
|
|
1099
|
+
if (hookType || this.tokenizer.token.type & TokenType.String) {
|
|
1100
1100
|
return this.parseComponentNode();
|
|
1101
1101
|
}
|
|
1102
1102
|
return this.parseElementNode();
|
|
@@ -1666,6 +1666,9 @@ class Interpreter {
|
|
|
1666
1666
|
} else {
|
|
1667
1667
|
return this.dynamicDeclaration(data, value, ctx);
|
|
1668
1668
|
}
|
|
1669
|
+
} else if (this.tokenizer.token.type === TokenType.String) {
|
|
1670
|
+
_node = this.createNode('text');
|
|
1671
|
+
this.setProp(_node, 'text', String(value));
|
|
1669
1672
|
} else {
|
|
1670
1673
|
_node = this.createNode(value);
|
|
1671
1674
|
}
|