Skip to content

Commit

Permalink
Create example.js
Browse files Browse the repository at this point in the history
  • Loading branch information
lxsmnsyc committed Nov 26, 2023
1 parent 23aee4a commit 1a41fb8
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions packages/solid-styled/example.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import { compile } from './dist/esm/development/compiler.mjs';

console.log(
(await compile('example.ts', `
import { css } from 'solid-styled';
function Example() {
css\`
@global {
:global(div) {
&:global(div) {
color: red;
}
}
}
\`
return <h1>Hello World</h1>;
}
`, { verbose: true })).code
);

0 comments on commit 1a41fb8

Please sign in to comment.