fix: twind duplicating css when className is used (#1658)
This commit is contained in:
+13
-2
@@ -128,11 +128,22 @@ function _printDomNode(
|
||||
}
|
||||
|
||||
export async function withFresh(
|
||||
name: string,
|
||||
name: string | { name: string; options: Omit<Deno.CommandOptions, "args"> },
|
||||
fn: (address: string) => Promise<void>,
|
||||
) {
|
||||
let file: string;
|
||||
let options = {};
|
||||
|
||||
if (typeof name === "object") {
|
||||
file = name.name;
|
||||
options = name.options ?? {};
|
||||
} else {
|
||||
file = name;
|
||||
}
|
||||
|
||||
const { lines, serverProcess, address } = await startFreshServer({
|
||||
args: ["run", "-A", name],
|
||||
...options,
|
||||
args: ["run", "-A", file],
|
||||
});
|
||||
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user