🚀🚀
Size: a a a
🚀🚀
DP
🚀🚀
🚀🚀
V
🚀🚀
🚀🚀
A
A
🚀🚀
const fnCall = template(`
foo({
bar: BAR,
baz: BAZ
})
`)
fnCall({
BAR: '"bar str"',
BAZ: '0xdeadbeef'
})
vs
t.callExpression(
t.identifier('foo'),
t.objectExpression([
t.objectProperty(
t.identifier('bar'),
t.stringLiteral('bar str')
),
t.objectProperty(
t.identifier('baz'),
t.numericLiteral(0xdeadbeef)
),
])
)🚀🚀
DS
V
AO
AO
DS
DS
c
const fnCall = template(`
foo({
bar: BAR,
baz: BAZ
})
`)
fnCall({
BAR: '"bar str"',
BAZ: '0xdeadbeef'
})
vs
t.callExpression(
t.identifier('foo'),
t.objectExpression([
t.objectProperty(
t.identifier('bar'),
t.stringLiteral('bar str')
),
t.objectProperty(
t.identifier('baz'),
t.numericLiteral(0xdeadbeef)
),
])
)TG
TG