bobe 0.0.66 → 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/index.umd.js
CHANGED
|
@@ -1098,7 +1098,7 @@
|
|
|
1098
1098
|
if (value === 'for') {
|
|
1099
1099
|
return this.parseLoopNode();
|
|
1100
1100
|
}
|
|
1101
|
-
if (hookType) {
|
|
1101
|
+
if (hookType || this.tokenizer.token.type & TokenType.String) {
|
|
1102
1102
|
return this.parseComponentNode();
|
|
1103
1103
|
}
|
|
1104
1104
|
return this.parseElementNode();
|
|
@@ -1668,6 +1668,9 @@
|
|
|
1668
1668
|
} else {
|
|
1669
1669
|
return this.dynamicDeclaration(data, value, ctx);
|
|
1670
1670
|
}
|
|
1671
|
+
} else if (this.tokenizer.token.type === TokenType.String) {
|
|
1672
|
+
_node = this.createNode('text');
|
|
1673
|
+
this.setProp(_node, 'text', String(value));
|
|
1671
1674
|
} else {
|
|
1672
1675
|
_node = this.createNode(value);
|
|
1673
1676
|
}
|