@react-pug/typescript-plugin-react-pug 0.1.0 → 0.1.1
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/plugin.js +1 -2
- package/dist/plugin.js.map +1 -1
- package/package.json +2 -2
package/dist/plugin.js
CHANGED
|
@@ -24945,10 +24945,9 @@ function emitAttribute(attr, emitter, pugText) {
|
|
|
24945
24945
|
if (typeof attr.val === "string") {
|
|
24946
24946
|
const val = attr.val;
|
|
24947
24947
|
if (val.startsWith('"') && val.endsWith('"') || val.startsWith("'") && val.endsWith("'")) {
|
|
24948
|
-
emitter.emitSynthetic("=
|
|
24948
|
+
emitter.emitSynthetic("=");
|
|
24949
24949
|
const valOffset = attrOffset + attr.name.length + 1;
|
|
24950
24950
|
emitter.emitMapped(val, valOffset, FULL_FEATURES);
|
|
24951
|
-
emitter.emitSynthetic("}");
|
|
24952
24951
|
} else {
|
|
24953
24952
|
emitter.emitSynthetic("={");
|
|
24954
24953
|
const valOffset = attrOffset + attr.name.length + 1;
|