fix some odd number / string problems

This commit is contained in:
Felix Roos 2023-10-01 00:33:10 +02:00
parent 062d926900
commit 33c40e5ef8
2 changed files with 4 additions and 4 deletions

View file

@ -41,7 +41,7 @@ export function transpiler(input, options = {}) {
widgets.push({
from: node.arguments[0].start,
to: node.arguments[0].end,
value: node.arguments[0].value,
value: node.arguments[0].raw, // don't use value!
min: node.arguments[1]?.value ?? 0,
max: node.arguments[2]?.value ?? 1,
});