fix: twind including unused CSS rules (#1415)
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
export default function Unused() {
|
||||
const _unused = <div class="text-red-600" />;
|
||||
return <h1>ready</h1>;
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
import { tw } from "https://esm.sh/@twind/core@1.1.3";
|
||||
|
||||
export default function Unused() {
|
||||
// @ts-ignore twind types are wrong
|
||||
tw`text-green-500`;
|
||||
const _unused = <div class="text-red-600" />;
|
||||
// @ts-ignore twind types are wrong
|
||||
return <h1 class={tw`text-blue-500`}>ready</h1>;
|
||||
}
|
||||
Reference in New Issue
Block a user