-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
Hi,
this is the sample code generating the error
import { minifyHTMLLiterals } from "minify-literals";
const source = `
const o=30;
const el = html\`<div style="height:\${o}px;"> <h1> Hello World </h1 > </div>\`;
`;
let { code, map } = await minifyHTMLLiterals(source);
console.log(code);output:
const o=30;
const el = html<div style="height:${o}"><h1>Hello World</h1></div>;
error: missing 'px;' after ${o}
desired output:
const o=30;const el = html<div style="height:${o}px;"><h1>Hello World</h1></div>;
Metadata
Metadata
Assignees
Labels
No labels