Skip to content

Commit

Permalink
Update compilers.md. (#838)
Browse files Browse the repository at this point in the history
  • Loading branch information
yishuolin authored Nov 14, 2024
1 parent db9da71 commit 1cf68c8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/docs/src/content/docs/features/compilers.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,10 @@ function getStyleBlockContent(block: SFCStyleBlock | null): string[] {
return [block.content];
}

function getStyleImports(content: string): string {
return [...content.matchAll(/(?<=@)import[^;]+/g)].join('\n');
}

const config = {
compilers: {
vue: (text: string, filename: string) => {
Expand Down

0 comments on commit 1cf68c8

Please sign in to comment.