Skip to content

Commit 1cbfc75

Browse files
asynclizcopybara-github
authored andcommitted
feat: export CSSStyleSheet as default from CSSResult-in-js files
PiperOrigin-RevId: 878547222
1 parent 9538d26 commit 1cbfc75

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

scripts/css-to-ts.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,6 @@ fs.writeFileSync(
2828
// Generated stylesheet for ${cssFilePath}.
2929
import {css} from 'lit';
3030
export const styles = css\`${cssContent}\`;
31+
export default styles.styleSheet!;
3132
`,
3233
);

0 commit comments

Comments
 (0)