Skip to content

Commit 28e3e63

Browse files
committed
add comment where we use the compiler directly
1 parent e2202b7 commit 28e3e63

1 file changed

Lines changed: 17 additions & 14 deletions

File tree

packages/tailwindcss/src/index.test.ts

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -904,22 +904,25 @@ describe('@apply', () => {
904904
}
905905
`
906906

907-
let compiler = await compile(input)
908-
expect(compiler.build([])).toMatchInlineSnapshot(`
909-
".foo {
910-
text-decoration-line: underline;
911-
@apply --my-mixin-1;
912-
@apply --my-mixin-1();
913-
@apply --my-mixin-1 --my-mixin-2;
914-
@apply --my-mixin-1() --my-mixin-2();
915-
@apply --my-mixin-3 {
916-
color: red;
907+
// TODO: once Lightning CSS properly supports it, then we can drop this section:
908+
{
909+
let compiler = await compile(input)
910+
expect(compiler.build([])).toMatchInlineSnapshot(`
911+
".foo {
912+
text-decoration-line: underline;
913+
@apply --my-mixin-1;
914+
@apply --my-mixin-1();
915+
@apply --my-mixin-1 --my-mixin-2;
916+
@apply --my-mixin-1() --my-mixin-2();
917+
@apply --my-mixin-3 {
918+
color: red;
919+
}
917920
}
918-
}
919-
"
920-
`)
921+
"
922+
`)
923+
}
921924

922-
// TODO: This output is currently broken because Lightning CSS doesn't
925+
// TODO: this output is currently broken because Lightning CSS doesn't
923926
// handle this case correctly yet
924927
expect(await compileCss(input)).toMatchInlineSnapshot(`
925928
".foo {

0 commit comments

Comments
 (0)