ventojs 0.12.4 → 0.12.5
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/README.md +1 -1
- package/esm/src/transformer.d.ts.map +1 -1
- package/esm/src/transformer.js +4 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transformer.d.ts","sourceRoot":"","sources":["../../src/src/transformer.ts"],"names":[],"mappings":"AAkHA,wBAAgB,qBAAqB,CACnC,IAAI,EAAE,MAAM,EACZ,aAAa,EAAE,MAAM,GACpB,MAAM,
|
|
1
|
+
{"version":3,"file":"transformer.d.ts","sourceRoot":"","sources":["../../src/src/transformer.ts"],"names":[],"mappings":"AAkHA,wBAAgB,qBAAqB,CACnC,IAAI,EAAE,MAAM,EACZ,aAAa,EAAE,MAAM,GACpB,MAAM,CAiIR"}
|
package/esm/src/transformer.js
CHANGED
|
@@ -179,7 +179,10 @@ export function transformTemplateCode(code, templateState) {
|
|
|
179
179
|
case "Identifier":
|
|
180
180
|
// Don't transform identifiers that aren't at the start of a MemberExpression
|
|
181
181
|
// ie. don't transform `bar` or `baz` in `foo.bar.baz`
|
|
182
|
-
|
|
182
|
+
// MemberExpression nodes can also take on a computed property
|
|
183
|
+
// which means it is an array-like access, so we do transform those.
|
|
184
|
+
if (parent?.type === "MemberExpression" && parent.property === node &&
|
|
185
|
+
parent.computed === false) {
|
|
183
186
|
return;
|
|
184
187
|
}
|
|
185
188
|
// Don't transform identifiers that are keys in an object
|